/* Fan-site wall of legends. All changes are visual: the shared menu,
   row sizes, section placement and player data retain their existing behavior. */
body.hof-page > main.hof-shell {
  max-width: min(1100px, calc(100vw - 32px)) !important;
  min-width: 0; box-sizing: border-box; margin-inline: auto;
  container: site-content / inline-size;
}
@media (min-width: 900px) {
  body.hof-page > main.hof-shell { zoom: .88; max-width: min(1250px, calc((100vw - 32px) / .88)) !important; }
}
@media (max-width: 520px) {
  body.hof-page > main.hof-shell { max-width: calc(100vw - 20px) !important; }
}
.hof-page .hof-shell {
  --hof-ink: #294b68;
  --hof-pink: #bf4f85;
  border-color: #b9d9ed;
  background: linear-gradient(150deg, rgb(251 237 247 / 90%), rgb(241 248 254 / 90%) 38%, rgb(231 242 252 / 90%));
  -webkit-backdrop-filter: blur(8px) saturate(108%);
  backdrop-filter: blur(8px) saturate(108%);
  box-shadow: inset 0 0 0 2px #ffffffaa, 0 16px 38px #668fac26;
}
.hof-page .hof-subheading {
  color: #3f6e94;
  text-shadow: 1px 1px #fffafc, 2px 3px #f4bfd5;
}

/* Keep the portraits dominant; individual accent frames belong to the Top 5. */
.hof-page .hof-card {
  --hof-frame: #b6d7ed;
  border-color: #d7e8f3;
  border-radius: 7px;
  background: #fffafd;
  box-shadow: 0 2px 0 #95b4ca66, 0 5px 12px #7297b01a;
}
.hof-page .hof-card-large {
  --hof-frame: #f0b5ce;
  border-color: var(--hof-frame);
  background: #fff7fa;
  box-shadow: inset 0 0 0 1px #fffafc, 0 3px 0 #8fb4cc4d, 0 6px 14px #7297b026;
}
.hof-page .hof-card-rank-2 { --hof-frame: #add8f2; }
.hof-page .hof-card-rank-3 { --hof-frame: #ffe3a3; }
.hof-page .hof-card-rank-4 { --hof-frame: #b6d7ed; }
.hof-page .hof-card-rank-5 { --hof-frame: #f5bed3; }
.hof-page .hof-card::before {
  border-color: var(--hof-frame);
  border-radius: 4px;
  box-shadow: none;
  opacity: 0.55;
}
.hof-page .hof-card::after { display: none; }
.hof-page .hof-avatar { border-radius: 3px 3px 0 0; box-shadow: none; }
.hof-page .hof-player {
  background: #fffafd;
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 1px #c6deef55;
}
.hof-page .hof-player h2 { color: #294b68; text-shadow: 0 1px #fffafc; }
.hof-page .hof-score { color: #bf4f85; }
.hof-page .hof-rank {
  color: #294b68;
  background: #edf6ff;
  text-shadow: none;
  box-shadow: 0 0 0 1px #fffafc, 0 2px 3px #668fac26;
}
.hof-page .hof-card-large .hof-rank {
  background: #ffe8a5;
  color: #294b68;
  text-shadow: none;
  box-shadow: none;
}
.hof-page .hof-card-large .hof-rank::before { background: #e9c884; }

/* Separate weekly cards, with the gain aligned at the right edge. */
.hof-page .hof-weekly::before { display: none; }
.hof-page .hof-weekly-list {
  gap: 10px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.hof-page .hof-weekly-list li {
  border: 1px solid #a9cce2;
  border-radius: 12px 18px 12px 18px;
  background:
    linear-gradient(130deg, transparent 85%, #f8d8e780 85.5%),
    linear-gradient(110deg, #e1f2ff, #fffafd 48%, #fff0f6);
  box-shadow: inset 0 0 0 2px #ffffffc9, 0 3px 0 #b3d0e2, 0 5px 9px #668fac17;
}
.hof-page .hof-weekly-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hof-page .hof-weekly-list strong { color: #294b68; }
.hof-page .hof-weekly-list .hof-score {
  color: #b8497e;
  margin: 0;
  padding: 0;
  gap: 4px;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.hof-page .hof-weekly-list .hof-score img { width: 23px; height: 23px; }
.hof-page .hof-weekly-rank {
  color: #416884;
  z-index: 1;
  border: 1px solid #c8b77c;
  border-radius: 7px 7px 10px 2px;
  background: linear-gradient(145deg, #fff9de, #ffe49c);
  box-shadow: inset 0 0 0 2px #fff8db, 0 2px 2px #718fa52b;
}
.hof-page .hof-weekly-avatar {
  border-radius: 9px;
  background: #d8edf9;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #aecfe5, 0 3px 4px #53799326;
}

/* Mafia lineup: generated booking wall and plaque, with live identity text. */
@font-face { font-family: 'Pizza Gang'; src: url('/assets/site/fonts/PizzaGangSanSerif.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
.hof-page .hof-mafia-rankings > .hof-subheading {
  color: #493b50; font-family: 'Pizza Gang', 'Kimoru', sans-serif; font-weight: 400;
  font-size: clamp(27px, 2.7vw, 34px); line-height: 1.15; letter-spacing: .015em;
  text-shadow: 1px 1px 0 #fff1d8, 2px 3px 0 #cba6b8;
}
.hof-page .hof-mafia-list { position: relative; padding: 0; gap: 10px; border: 0; background: transparent; box-shadow: none; }
.hof-page .hof-mafia-list:empty { display: none; }
.hof-page .hof-mafia-card { display: block; padding: 0 0 22px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hof-page .hof-mafia-mugshot {
  position: relative; padding: 5px; border: 1px solid #9c8da6; border-radius: 7px 2px 7px 2px;
  background: #d9d0e1; box-shadow: inset 0 0 0 2px #fff5e9, 2px 3px 0 #b8afc6;
}
.hof-page .hof-mafia-card:nth-child(even) .hof-mafia-mugshot { background: #e5ced8; border-color: #aa899d; }
.hof-page .hof-mafia-avatar {
  position: relative; display: block; width: 100%; aspect-ratio: 200 / 270;
  overflow: hidden; border: 1px solid #b2a9be; border-radius: 2px;
  background: #c8ccdf url('/assets/site/hall-of-fame/mafia-lineup-backdrop-v1.webp') center / cover;
}
.hof-page .hof-mafia-avatar::before { display: none; }
.hof-page .hof-mafia-avatar > .hof-mafia-portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; }
.hof-page .hof-mafia-board {
  position: absolute; z-index: 2; bottom: 5%; left: 17%; right: 17%;
  display: grid; align-content: center; gap: 1px; min-height: 0; padding: 5px 9%;
  background: url('/assets/site/hall-of-fame/mafia-booking-plaque-v1.webp') center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 1px #20203250); transform: translateY(50%) rotate(-1.5deg); text-decoration: none;
}
.hof-page .hof-mafia-card:nth-child(even) .hof-mafia-board { transform: translateY(50%) rotate(1.5deg); }
.hof-page .hof-mafia-board:focus-visible { outline: 2px solid #745778; outline-offset: 3px; }
.hof-page .hof-mafia-gloves {
  position: absolute; z-index: 3; left: -9%; top: 50%; width: 118%; max-width: none; height: auto;
  transform: translateY(-50%); pointer-events: none;
}
.hof-page .hof-mafia-player { position: static; display: block; min-width: 0; padding: 0; text-align: center; }
.hof-page .hof-mafia-player strong {
  color: #fff4dc; font: 400 10.5px/1.15 'Kimoru', sans-serif; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: clip; text-transform: none; text-shadow: none;
}
.hof-page .hof-mafia-player strong:is(.is-long-name,.is-extra-long-name) { font-size: 9px; letter-spacing: 0; }
.hof-page .hof-mafia-score { position: static; display: flex; justify-content: center; align-items: center; margin: 0; padding: 0; gap: 3px; background: transparent; box-shadow: none; }
.hof-page .hof-mafia-score img { width: 9px; height: 9px; object-fit: contain; }
.hof-page .hof-mafia-score strong { color: #ffead0; font: 500 11px/1 'Barlow Semi Condensed', sans-serif; font-variant-numeric: tabular-nums; }
.hof-page .hof-mafia-rank {
  position: absolute; z-index: 3; top: -6px; left: -5px; display: grid; place-items: center;
  min-width: 28px; width: 28px; min-height: 34px; height: 34px; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; transform: none; clip-path: none;
  filter: drop-shadow(0 1px 1px #312b4b44);
}
.hof-page .hof-mafia-rank::before { display: none; }
.hof-page .hof-mafia-rank svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hof-page .hof-mafia-rank text { fill: #fff0d2; font: 400 20px 'Kimoru', sans-serif; }

/* Magnate: open rose-gold Deco architecture and a separate pearl identity plaque. */
.hof-page .magnate-winners {
  --magnate-ink: #a96f60;
  --magnate-muted: #997269;
  --magnate-deco-font: "Decohead", "Barlow Semi Condensed", sans-serif;
}
.hof-page .magnate-winners .hof-subheading {
  color: #a96f60;
  font-family: var(--magnate-deco-font);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-shadow: none;
}
.hof-page .magnate-winners .hof-subheading > span {
  color: transparent;
  background:
    radial-gradient(ellipse at 30% 0%, #fff9e9a6, transparent 75%),
    linear-gradient(165deg, #efcfb5 0%, #dfb198 45%, #bc8776 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 0.35px #b67d6d;
  filter: drop-shadow(0 1px 0 #ffffff) drop-shadow(0 2px 1px #b9876f40);
}
.hof-page .magnate-winners .hof-subheading::after { content: none; display: none; }
.hof-page .magnate-winner-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 1048px;
  padding: 4px 3px 8px;
  overflow: visible;
}
.hof-page .magnate-winner-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 2px #8862592b);
  transition: transform 180ms ease, filter 180ms ease;
}
.hof-page .magnate-winner-card::before,
.hof-page .magnate-winner-card::after { display: none; }
/* Hit areas follow the two separate pieces in the 240 × 428 SVG. */
.hof-page .magnate-profile-link,
.hof-page .magnate-poll-link {
  position: absolute;
  display: block;
  cursor: pointer;
}
.hof-page .magnate-profile-link {
  inset: 0 0 auto;
  height: calc(350 / 428 * 100%);
}
.hof-page .magnate-poll-link {
  left: 5%;
  right: 5%;
  top: calc(362 / 428 * 100%);
  height: calc(60 / 428 * 100%);
}
.hof-page :is(.magnate-profile-link, .magnate-poll-link):focus-visible {
  outline: 2px solid #704457;
  outline-offset: 3px;
}
.hof-page .magnate-collectible {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: geometricPrecision;
}
.magnate-collectible-name {
  fill: #432c3c;
  font: 400 32px var(--magnate-deco-font);
}
.magnate-collectible-serial {
  fill: #855b61;
  font: 400 12px var(--magnate-deco-font);
  letter-spacing: 1px;
}
.hof-page .magnate-winner-card:is(:hover, :focus-within) {
  transform: translateY(-3px);
  filter: drop-shadow(0 5px 3px #88625938);
}
@media (max-width: 760px) {
  .hof-page .magnate-winner-list {
    grid-template-columns: repeat(6, 160px);
    overflow-x: auto;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hof-page .magnate-winner-card { transition: none; }
  .hof-page .magnate-winner-card:is(:hover, :focus-within) { transform: none; }
}
.hof-page .hof-empty-state { border-color: #b9d9ed; background: #fff5fa; color: #3f6e94; }
.hof-page .hof-card:hover,
.hof-page .hof-card:focus-within { box-shadow: 0 3px 0 #233f5399, 0 0 0 2px #f3b9d0; }
.hof-page :is(.hof-avatar, .hof-weekly-avatar, .hof-mafia-avatar, .magnate-winner-card):focus-visible {
  outline: 3px solid #ef86ad;
  outline-offset: 3px;
}

/* Top 5: layered pastel frames and inset nameplates. */
@font-face {
  font-family: "HOF Barlow Medium";
  src: url("/assets/site/fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
.hof-page .hof-card-large {
  --frame-outer: #f3b8d0;
  --frame-middle: #afd7f0;
  --frame-mat: #e6f4fc;
  --frame-line: #7998ad;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform 220ms ease;
}
.hof-page .hof-card-rank-2 { --frame-outer: #b8ddf3; --frame-middle: #f5c5d8; --frame-mat: #fff0f5; }
.hof-page .hof-card-rank-3 { --frame-outer: #ffe6a4; --frame-middle: #b4d8f0; --frame-mat: #fff9e9; }
.hof-page .hof-card-rank-4 { --frame-outer: #afd7ef; --frame-middle: #f7c6d9; --frame-mat: #edf7ff; }
.hof-page .hof-card-rank-5 { --frame-outer: #f3bfd3; --frame-middle: #ffe5a5; --frame-mat: #fff8e5; }
.hof-page .hof-card-large::before,
.hof-page .hof-card-large::after { display: none; }
.hof-page .hof-card-large > :is(.hof-rank, .hof-avatar, .hof-player) { opacity: 0; }
.hof-page .hof-card-large .hof-featured-art {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px #507d9729);
  transition: filter 220ms ease;
}
.hof-frame-outer { stroke: var(--frame-line); stroke-width: 1; }
.hof-frame-highlight { fill: none; stroke: #fffdf9; stroke-width: .75; stroke-opacity: .7; }
.hof-frame-middle { stroke: var(--frame-line); stroke-width: 1; }
.hof-frame-mat { fill: var(--frame-mat); stroke: var(--frame-line); stroke-width: 1; }
.hof-frame-name {
  fill: #294b68;
  font-family: "Kimoru", Arial, sans-serif;
  font-weight: 400;
  text-transform: none;
}
.hof-frame-fame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  color: #294b68;
  font: 500 16px/1 "HOF Barlow Medium", "Barlow Semi Condensed", sans-serif;
}
.hof-frame-fame img { flex: 0 0 14px; width: 14px; height: 14px; object-fit: contain; }
.hof-page .hof-card-large:hover,
.hof-page .hof-card-large:focus-within { box-shadow: none; transform: translateY(-3px); }
.hof-page .hof-card-large:hover .hof-featured-art {
  filter: drop-shadow(0 4px 3px #507d9730);
}
.hof-page .hof-card-large:focus-within .hof-featured-art {
  outline: 2px solid #7cabc8;
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .hof-page .hof-card-large,
  .hof-page .hof-card-large .hof-featured-art { transition: none; }
  .hof-page .hof-card-large:is(:hover, :focus-within) { transform: none; }
}

/* Quiet pastel seals replace the ornate medals and tilted number stickers. */
.hof-page .hof-rank-seal { display: block; width: 100%; height: 100%; overflow: visible; }
.hof-page .hof-rank-seal-number { font: 400 27px "Kimoru", "Barlow Semi Condensed", sans-serif; letter-spacing: -.5px; }
.hof-page .hof-card:not(.hof-card-large) .hof-rank {
  top: 3px; left: 3px; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-shadow: none; transform: none; filter: drop-shadow(0 1px 1px #5f6a7922);
}
/* SVG dimensions position the featured seals without changing portrait geometry. */
.hof-page .hof-featured-art > .hof-rank-seal { width: 60px; height: 60px; }

/* Featured portraits retain the visual lead; their captions sit below the art. */
.hof-page .hof-card-large { display: block; padding: 0; border: 0; }
.hof-page .hof-featured-portrait { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.hof-page .hof-featured-portrait > .hof-avatar { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hof-page .hof-card-large > .hof-player {
  opacity: 1; width: calc(100% - 22px); min-height: 0; margin: 5px auto 0; padding: 8px 5px;
  border: 1px solid #d4dfe9; border-radius: 7px; background: #fffafb;
  box-shadow: 0 2px 0 #dbe7ef; overflow: hidden;
}
.hof-page .hof-card-large .hof-player h2 { font: 400 18px/1.2 "Kimoru", sans-serif; color: #355a70; text-shadow: none; white-space: nowrap; }
.hof-page .hof-card-large .hof-player h2:is(.is-long-name,.is-extra-long-name) { font-size: 15px; }
.hof-page .hof-card-large .hof-score { margin-top: 4px; font-size: 17px; font-weight: 600; color: #a16483; gap: 4px; }
.hof-page .hof-card-large .hof-score img { width: 15px; height: 15px; filter: none; }

/* Preserve the original compact portrait grid and give it more of the page. */
.hof-page .hof-content { grid-template-columns: minmax(0, 1fr) 228px; gap: 18px; }
.hof-page .hof-weekly > .hof-subheading { font-size: 1.75rem; }
.hof-page .hof-weekly-list li { padding: 8px; gap: 8px; }
.hof-page .hof-weekly-list .hof-score { font-size: 1.5rem; gap: 3px; }
.hof-page .hof-weekly-list .hof-score img { width: 18px; height: 18px; }
.hof-page .hof-weekly-avatar { width: 48px; height: 58px; }
.hof-page .hof-grid-standard { gap: 8px; }
.hof-page .hof-card:not(.hof-card-large) .hof-player { min-height: 46px; padding: 6px 2px; background: #fffcfe; }
.hof-page .hof-card:not(.hof-card-large) .hof-player h2 {
  display: block; min-height: 0; margin: 0; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.2; color: #355a70;
  white-space: nowrap; overflow-wrap: normal; overflow: hidden; text-overflow: ellipsis; text-shadow: none;
}
.hof-page .hof-card:not(.hof-card-large) .hof-player h2:is(.is-long-name,.is-extra-long-name) { font-size: 13px; letter-spacing: -.2px; }
.hof-page .hof-card:not(.hof-card-large) .hof-score { margin-top: 4px; font-size: 15px; font-weight: 600; color: #a16483; gap: 3px; }
.hof-page .hof-card:not(.hof-card-large) .hof-score img { width: 13px; height: 13px; filter: none; }
@media (max-width: 1100px) { .hof-page .hof-content { grid-template-columns: minmax(0, 1fr); } }

/* Small desktop-window nameplates, echoing the site's pastel digital UI. */
.hof-page .hof-card-large > .hof-player {
  position: relative; padding: 15px 6px 8px; margin-top: 6px;
  border: 1px solid #91a9c2; border-radius: 3px 3px 6px 3px;
  background: #f5f7ff; box-shadow: 3px 3px 0 #c4dce8;
}
.hof-page .hof-card-large > .hof-player::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  border-bottom: 1px solid #acbdd2; background: #cadceF;
}
.hof-page .hof-card-large:nth-child(even) > .hof-player::before { background: #ecd3e3; }
.hof-page .hof-card-large > .hof-player::after {
  content: ""; position: absolute; top: 2px; right: 5px; width: 3px; height: 3px;
  background: #fff9fd; box-shadow: -6px 0 0 #fff9fd, -12px 0 0 #fff9fd;
}
.hof-page .hof-card-large .hof-player h2 { color: #3c5878; }
.hof-page .hof-card-large .hof-score { color: #a25e86; font-size: 16px; }

/* Lower ranks keep smaller, simpler frames and detached nameplates. */
.hof-page .hof-card:not(.hof-card-large) {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; overflow: visible; gap: 7px;
}
.hof-page .hof-card:not(.hof-card-large)::before { display: none; }
.hof-page .hof-card:not(.hof-card-large) .hof-avatar {
  box-sizing: border-box; padding: 3px; border: 1px solid #96b2c8; border-radius: 5px;
  background: #d8eaf5; box-shadow: inset 0 0 0 1px #fff, 2px 2px 0 #c1d8e7;
}
.hof-page .hof-card:not(.hof-card-large):nth-child(even) .hof-avatar { background: #f0d8e7; border-color: #baa3bc; }
.hof-page .hof-card:not(.hof-card-large) .hof-avatar img { border-radius: 2px; }
.hof-page .hof-card:not(.hof-card-large) .hof-player {
  position: relative; width: calc(100% - 4px); margin: 0 auto; padding: 9px 2px 6px;
  border: 1px solid #b5c6d8; border-radius: 2px 2px 5px 2px; background: #f8f8ff;
  box-shadow: 2px 2px 0 #ccdfeb;
}
.hof-page .hof-card:not(.hof-card-large) .hof-player::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #d6e4f2;
}
.hof-page .hof-card:not(.hof-card-large):nth-child(even) .hof-player::before { background: #eed8e7; }
