/* The Hall of Fame modal and its city controls. */

.city-eyebrow-row {
  flex-wrap: wrap;
}

.rpg-window .hall-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  flex: none;
}

.rpg-window .hall-summary-count {
  font: 12px/1.3 "Segoe UI", system-ui, sans-serif;
  color: #aeb2a4;
}

.rpg-window .hall-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid #74624355;
}

.rpg-window .hall-tabs,
.rpg-window .hall-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rpg-window .hall-tabs button,
.rpg-window .hall-filters button {
  background: transparent;
  border-color: #6e604766;
  box-shadow: none;
}

.rpg-window .hall-tabs button[aria-pressed="true"],
.rpg-window .hall-filters button[aria-pressed="true"] {
  background: #a58c5525;
  border-color: #c3a471;
  color: #f3ddb0;
}

.rpg-window .hall-personal-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #75644444;
  border-radius: 3px;
  background: linear-gradient(135deg, #8c71321b, #18231c55);
}

.rpg-window .hall-banner-subtitle {
  margin: 0;
  font: 12px/1.45 "Segoe UI", system-ui, sans-serif;
  color: #c7b48d;
}

.rpg-window .hall-banner-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font: 12px/1.3 "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.rpg-window .hall-banner-rank {
  padding: 3px 8px;
  border: 1px solid #b99c6755;
  border-radius: 2px;
  background: #a58c5520;
  color: #f3ddb0;
  font-weight: 600;
}

.rpg-window .hall-banner-stat {
  color: #d8c8a8;
}

.rpg-window .hall-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 8px;
}

.rpg-window .hall-row {
  display: grid;
  grid-template-columns: 46px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #75644444;
  border-radius: 3px;
  background: linear-gradient(135deg, #8c713214, #18231c44);
  text-align: left;
}

.rpg-window .hall-row.is-current-hero {
  border-color: #c3a47199;
  background: linear-gradient(135deg, #a58c5528, #1f2d2477);
}

.rpg-window .hall-row.hall-rank-1 {
  border-color: #d8b56d99;
}

.rpg-window .hall-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #75644455;
  border-radius: 2px;
  background: #141c17;
  color: #c7b48d;
  font: 700 13px/1 "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.rpg-window .hall-rank-1 .hall-rank-badge {
  border-color: #ddb86a;
  background: #3b311d;
  color: #ffe5a3;
}

.rpg-window .hall-rank-2 .hall-rank-badge {
  border-color: #a9b4bc;
  background: #252c31;
  color: #e4edf2;
}

.rpg-window .hall-rank-3 .hall-rank-badge {
  border-color: #b9855e;
  background: #31231b;
  color: #f0c9ad;
}

.rpg-window .hall-portrait-wrap {
  width: 42px;
  height: 42px;
  border: 1px solid #6e604788;
  border-radius: 2px;
  background: #121815;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpg-window .hall-hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rpg-window .hall-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rpg-window .hall-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rpg-window .hall-hero-name {
  font: 600 15px/1.25 "Segoe UI", system-ui, sans-serif;
  color: #f3e4c5;
}

.rpg-window .hall-owner-tag {
  padding: 2px 6px;
  border: 1px solid #75644466;
  border-radius: 2px;
  background: #1b251f;
  color: #c7b48d;
  font: 600 11px/1.2 "Segoe UI", system-ui, sans-serif;
}

.rpg-window .hall-owner-tag.is-self {
  border-color: #c3a47188;
  background: #3a3420;
  color: #f5dfaf;
}

.rpg-window .hall-hero-meta {
  font: 12px/1.4 "Segoe UI", system-ui, sans-serif;
  color: #aeb2a4;
  font-variant-numeric: tabular-nums;
}

.rpg-window .hall-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rpg-window .hall-metric-primary {
  font: 700 15px/1.25 "Segoe UI", system-ui, sans-serif;
  color: #f0dfb8;
}

.rpg-window .hall-metric.is-unranked .hall-metric-primary {
  color: #9da295;
  font-weight: 600;
}

.rpg-window .hall-metric-secondary {
  font: 11px/1.35 "Segoe UI", system-ui, sans-serif;
  color: #b5a17c;
}

@media (max-height: 520px) and (min-width: 561px) {
  .rpg-window .hall-toolbar {
    gap: 6px 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .rpg-window .hall-personal-banner {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .rpg-window .hall-row {
    padding: 8px 10px;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .rpg-window .hall-header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .rpg-window .hall-modal-header .rpg-window-title {
    flex-basis: 100%;
  }
  .rpg-window .hall-row {
    grid-template-columns: 40px 36px minmax(0, 1fr);
    gap: 8px;
  }
  .rpg-window .hall-portrait-wrap {
    width: 36px;
    height: 36px;
  }
  .rpg-window .hall-metric {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    padding-top: 6px;
    border-top: 1px solid #74624333;
  }
}

/* Your feats (js/ui/feats.js): the Hall's last tab. The rankings' filters,
   banner and count are about the rankings, so they step aside for it. */
.hall-modal[data-hall-view="feats"] :is(.hall-filters, .hall-personal-banner, .hall-list, .hall-summary-count) { display: none; }
.hall-feats[hidden] { display: none; }
.rpg-window .hall-feats-count { margin-left: 4px; font-size: 11px; color: #b9a57a; }

.rpg-window .feats-head { display: grid; gap: 8px; margin: 0 0 14px; }
.rpg-window .feats-title { margin: 0; font: 400 20px Georgia, serif; color: #f1ddb3; }
.rpg-window .feats-sub { margin: 2px 0 0; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; color: #b3a888; }
.rpg-window .feats-bar { position: relative; display: block; height: 4px; border-radius: 2px; background: #2a2a24; overflow: hidden; }
.rpg-window .feats-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: linear-gradient(90deg, #9b7434, #e2b766); }

.rpg-window .feats-groups { display: grid; gap: 16px; padding-bottom: 8px; }
.rpg-window .feats-group-name { margin: 0 0 6px; font: 700 11px "Segoe UI", system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #a89464; }
.rpg-window .feats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 6px; }
.rpg-window .feat {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border: 1px solid #5d523d44; border-radius: 3px; background: #0c111266;
}
.rpg-window .feat-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #5d5747; }
.rpg-window .feat-mark .utility-icon { width: 24px; height: 24px; }
.rpg-window .feat-copy { display: grid; gap: 1px; min-width: 0; }
.rpg-window .feat-name { font: 400 15px/1.25 Georgia, serif; color: #9d9582; }
.rpg-window .feat-how { font: 12.5px/1.35 "Segoe UI", system-ui, sans-serif; color: #8a8270; }
.rpg-window .feat-status { font: 600 11.5px "Segoe UI", system-ui, sans-serif; color: #7d7563; white-space: nowrap; text-align: right; }
.rpg-window .feat-status.feat-progress { position: relative; padding-bottom: 6px; color: #b3a47f; }
.rpg-window .feat-status.feat-progress::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #c39a4f var(--fill), #2b2a23 var(--fill)); }

.rpg-window .feat[data-earned="true"] { border-color: #b8924f66; background: linear-gradient(135deg, #8c71321f, #18231c44); }
.rpg-window .feat[data-earned="true"] .feat-mark { color: #e6bd6a; background: radial-gradient(circle, #e0a94a2e, transparent 70%); }
.rpg-window .feat[data-earned="true"] .feat-name { color: #f3e4c2; }
.rpg-window .feat[data-earned="true"] .feat-how { color: #b9ad90; }
.rpg-window .feat[data-earned="true"] .feat-status { color: #cfb27a; }
