/*==================================================================
  AWARDS — "Hall of Fame" (component/awardsHall/*)
  Spotlight with a discharging trophy, a "recognised by" band,
  an asymmetric mosaic dispatched by rank, a battery that charges
  award by award, radial energy meters, and a native <dialog>.
  Palette: PES green / PELS coral from theme.css, with a small
  dose of gold for first places. Every class starts with hof-.
==================================================================*/

.hof,
.hof-dialog {
  --hof-gold: #f2c46d;
  --hof-gold-2: #f7d99a;
  --hof-gold-rgb: 242, 196, 109;
  --hof-silver: #cfd8d4;
  --hof-silver-rgb: 207, 216, 212;
}

html.hof-locked { overflow: hidden; }

/* tone for stages outside the two societies: gold glow instead of PES green / PELS coral */
.hof .is-gold,
.hof-dialog.is-gold { --glow-rgb: 242, 196, 109; }

/* gradient words keep their heading's line height (the template gives every span 1.7) */
.hof .pp-grad { line-height: inherit !important; }
html.hof-locked body { padding-right: var(--hof-sbw, 0px); }

/* ================================================================
   SHARED BITS
================================================================ */

/* ---------- medal on a green + coral ribbon ---------- */
.hof-medal {
  --m: 40px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--m);
  height: var(--m);
  vertical-align: middle;
}

.hof-medal--xs { --m: 22px; }
.hof-medal--sm { --m: 30px; }
.hof-medal--lg { --m: 84px; }

.hof-medal__disc {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-family: var(--headingFont);
  font-size: calc(var(--m) * 0.34) !important;
  font-weight: 800;
  font-style: normal;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: #3b2a07;
  background: radial-gradient(circle at 32% 28%, #fff6dc 0 10%, var(--hof-gold) 48%, #b8873a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 6px 16px -6px rgba(var(--hof-gold-rgb), 0.75);
}

.hof-medal--xs .hof-medal__disc { font-size: 8.5px !important; letter-spacing: -0.04em; }

.hof-medal__disc { transition: transform 1s var(--ease-soft); }

.hof-tile:hover .hof-medal__disc,
.hof-cell__btn:hover .hof-medal__disc { transform: perspective(160px) rotateY(360deg); }
.hof-medal__disc i { font-size: calc(var(--m) * 0.44); }

.hof-medal--silver .hof-medal__disc {
  color: #1c2522;
  background: radial-gradient(circle at 32% 28%, #ffffff 0 10%, #d9e1dd 48%, #8e9b96 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.16),
    0 6px 16px -6px rgba(var(--hof-silver-rgb), 0.55);
}

.hof-medal--bronze .hof-medal__disc {
  color: #3a1e0c;
  background: radial-gradient(circle at 32% 28%, #ffe2c7 0 10%, #d49a6a 48%, #8f5a33 100%);
}

.hof-medal--special .hof-medal__disc {
  color: var(--green-ink);
  background: radial-gradient(circle at 32% 28%, #e4fbef 0 10%, var(--green-2) 48%, #2e9a68 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45), 0 6px 16px -6px rgba(76, 195, 138, 0.7);
}

.hof-medal--special.is-red .hof-medal__disc {
  color: var(--red-ink);
  background: radial-gradient(circle at 32% 28%, #ffe4e5 0 10%, var(--red-2) 48%, #c4474f 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45), 0 6px 16px -6px rgba(229, 99, 106, 0.7);
}

/* two ribbon tails under the disc: one PES green, one PELS coral */
.hof-medal__ribbon {
  position: absolute;
  left: 50%;
  top: 58%;
  width: calc(var(--m) * 0.66);
  height: calc(var(--m) * 0.62);
  transform: translateX(-50%);
}

.hof-medal__ribbon::before,
.hof-medal__ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 44%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.hof-medal__ribbon::before {
  left: 2%;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  transform: rotate(16deg);
  transform-origin: top right;
}

.hof-medal__ribbon::after {
  right: 2%;
  background: linear-gradient(180deg, var(--red-2), var(--red));
  transform: rotate(-16deg);
  transform-origin: top left;
}

.hof-medal--xs .hof-medal__ribbon { display: none; }

/* ---------- small pill above a title ---------- */
.hof-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--hof-gold-2);
  background: rgba(var(--hof-gold-rgb), 0.08);
  border: 1px solid rgba(var(--hof-gold-rgb), 0.24);
}

.hof-kicker__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hof-gold), var(--red));
  animation: pp-ping 2.4s var(--ease) infinite;
}

/* ---------- date / place line ---------- */
.hof-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 0 !important;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.hof-facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hof-facts time { font-size: inherit; }
.hof-facts i { font-size: 14px; color: var(--green-2); }
.hof-facts li + li i { color: var(--red-2); }

/* ================================================================
   SPOTLIGHT
================================================================ */
.hof-spot { position: relative; padding-top: 8px; }

.hof-spot__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  grid-template-areas: "text visual";
  align-items: center;
  gap: clamp(40px, 5.5vw, 84px);
  padding: clamp(28px, 4.6vw, 68px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(640px 420px at 74% 46%, rgba(var(--hof-gold-rgb), 0.12), transparent 62%),
    radial-gradient(560px 380px at 0% 0%, rgba(76, 195, 138, 0.16), transparent 62%),
    radial-gradient(560px 380px at 100% 100%, rgba(229, 99, 106, 0.14), transparent 62%),
    linear-gradient(160deg, #121a17, #0c1210);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.95);
}

/* hairline border: green → glass → gold → coral */
.hof-spot__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(76, 195, 138, 0.5), rgba(255, 255, 255, 0.06) 28%, rgba(255, 255, 255, 0.04) 58%,
      rgba(var(--hof-gold-rgb), 0.45) 82%, rgba(229, 99, 106, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hof-spot__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 60%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 60%);
}

.hof-spot__text {
  grid-area: text;
  position: relative;
  z-index: 2;
}

.hof-spot__rank {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px !important;
  font-family: var(--headingFont);
  font-style: italic;
  font-weight: 600;
  color: var(--hof-gold-2);
}

.hof-spot__rank > span:last-child {
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 600;
}

.hof-spot__title {
  margin-top: 16px !important;
  font-size: clamp(38px, 4.1vw, 60px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.hof-spot__desc {
  max-width: 470px;
  margin-top: 16px !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--text-2);
}

.hof-spot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hof-spot__actions .pp-btn--primary { color: var(--green-ink) !important; }

/* ---------- the photo in a lit frame ---------- */
.hof-spot__visual {
  grid-area: visual;
  position: relative;
  z-index: 1;
}

.hof-spot__frame {
  position: relative;
  padding: 1px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(var(--hof-gold-rgb), 0.7), rgba(255, 255, 255, 0.08) 38%,
      rgba(255, 255, 255, 0.05) 62%, rgba(229, 99, 106, 0.55));
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95), 0 0 90px -30px rgba(var(--hof-gold-rgb), 0.35);
  transform: rotate(1.6deg);
  transition: transform 1.2s var(--ease-soft);
}

.hof-spot__card:hover .hof-spot__frame { transform: rotate(0.4deg) translateY(-4px); }

/* a light that runs around the frame */
.hof-spot__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--pp-angle), transparent 0 64%, rgba(var(--hof-gold-rgb), 0.9) 78%, #fff 81%,
      rgba(111, 214, 163, 0.8) 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pp-spin 7s linear infinite;
}

.hof-spot__photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 27px;
  background: var(--surface);
}

.hof-spot__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(205deg, transparent 52%, rgba(8, 12, 11, 0.55));
}

.hof-spot__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(var(--hof-gold-rgb), 0.2), transparent 60%), var(--surface-2);
}

/* ---------- the trophy reactor ---------- */
.hof-reactor {
  position: absolute;
  left: clamp(-120px, -7vw, -60px);
  bottom: -78px;
  z-index: 2;
  width: 230px;
  height: 230px;
  pointer-events: none;
}

/* warm halo */
.hof-reactor::before {
  content: "";
  position: absolute;
  inset: -34%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--hof-gold-rgb), 0.26), rgba(var(--hof-gold-rgb), 0.07) 52%, transparent);
}

.hof-reactor__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 660px;
  height: 660px;
  margin: -330px 0 0 -330px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(var(--hof-gold-rgb), 0.17) 0deg 2deg, transparent 2deg 11deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, rgba(0, 0, 0, 0.32) 42%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 12%, rgba(0, 0, 0, 0.32) 42%, transparent 100%);
  animation: hof-turn 120s linear infinite;
}

.hof-reactor__rays.is-b {
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  background: repeating-conic-gradient(from 5deg, rgba(111, 214, 163, 0.2) 0deg 1.4deg, transparent 1.4deg 17deg);
  animation-duration: 170s;
  animation-direction: reverse;
}

@keyframes hof-turn { to { transform: rotate(360deg); } }

/* discharge rings */
.hof-reactor__shock {
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  border: 1px solid rgba(var(--hof-gold-rgb), 0.55);
  opacity: 0;
  animation: hof-shock 5.2s var(--ease-soft) infinite;
}

.hof-reactor__shock.is-late {
  border-color: rgba(111, 214, 163, 0.5);
  animation-delay: 2.6s;
}

@keyframes hof-shock {
  0% { transform: scale(0.7); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hof-reactor__orbit {
  position: absolute !important;
  inset: 0;
}

.hof-reactor .pp-orbit__path { border-color: rgba(var(--hof-gold-rgb), 0.26); }
.hof-reactor .pp-orbit__ring:nth-child(2) .pp-orbit__path { border-color: rgba(111, 214, 163, 0.26); }

.hof-reactor__core {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  font-size: 38px;
  background: radial-gradient(circle at 50% 30%, #2b3531, #111816 72%);
  border: 1px solid rgba(var(--hof-gold-rgb), 0.55);
  box-shadow: 0 0 0 8px rgba(var(--hof-gold-rgb), 0.06), 0 0 46px 4px rgba(var(--hof-gold-rgb), 0.28),
    inset 0 0 22px rgba(var(--hof-gold-rgb), 0.18);
}

.hof-reactor__core i {
  background: linear-gradient(180deg, #fff3cf, var(--hof-gold) 55%, #c08a36);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(var(--hof-gold-rgb), 0.45));
}

/* sparks */
.hof-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hof-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ss);
  height: var(--ss);
  margin: calc(var(--ss) / -2) 0 0 calc(var(--ss) / -2);
  border-radius: 50%;
  background: #fff4d6;
  box-shadow: 0 0 6px 1px rgba(var(--hof-gold-rgb), 0.85);
  opacity: 0;
  animation: hof-spark var(--sdur) cubic-bezier(0.2, 0.7, 0.3, 1) var(--sdelay) infinite;
}

.hof-spark.is-green { background: #e4fbef; box-shadow: 0 0 6px 1px rgba(111, 214, 163, 0.85); }
.hof-spark.is-red { background: #ffe4e5; box-shadow: 0 0 6px 1px rgba(240, 138, 143, 0.85); }

@keyframes hof-spark {
  0% { opacity: 0; transform: rotate(var(--sa)) translateX(44px) scale(0.5); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--sa)) translateX(var(--sd)) scale(1); }
}

/* ================================================================
   RECOGNISED BY
================================================================ */
.hof-credits { padding-top: 96px; }

.hof-credits__band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 18px 36px;
  padding: 28px 0;
}

/* hairlines that fade at both ends */
.hof-credits__band::before,
.hof-credits__band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 195, 138, 0.4) 20%, rgba(255, 255, 255, 0.1) 50%,
      rgba(229, 99, 106, 0.4) 80%, transparent);
}

.hof-credits__band::before { top: 0; }
.hof-credits__band::after { bottom: 0; }

.hof-credits__waves {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: -1;
  opacity: 0.32;
  transform: translateY(-50%);
  pointer-events: none;
}

.hof-credits__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--paraFont);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-2);
}

.hof-credits__label .pp-bolt { color: var(--hof-gold); }

.hof-credits__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hof-credit {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 10px 20px 10px 32px;
  border-radius: 999px;
  background: rgba(14, 20, 18, 0.7);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hof-credit::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(76, 195, 138, 0.8);
}

.hof-credit.is-red::before {
  background: var(--red);
  box-shadow: 0 0 10px rgba(229, 99, 106, 0.8);
}

/* stages outside PES / PELS get a neutral gold dot */
.hof-credit.is-gold::before {
  background: var(--hof-gold);
  box-shadow: 0 0 10px rgba(var(--hof-gold-rgb), 0.7);
}

.hof-credit__name {
  font-family: var(--headingFont);
  font-size: 19px !important;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3 !important;
  color: var(--text);
  white-space: nowrap;
}

.hof-credit__years {
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3 !important;
  color: var(--text-3);
  white-space: nowrap;
}

.hof-credit__count {
  font-size: inherit !important;
  line-height: inherit !important;
  color: var(--text-2);
}

/* ================================================================
   HALL OF FAME — mosaic
================================================================ */
.hof-hall {
  position: relative;
  padding-top: 120px;
}

/* a band of circuitry behind the mosaic: it shows in the margins and between tiles */
.hof-hall__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 300px;
  height: 680px;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.hof-hall__aside { max-width: 480px; }
.hof-hall__aside .pp-section__intro { max-width: none; }

.hof-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px !important;
}

.hof-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-line);
}

.hof-legend__item strong { font-weight: 600; color: var(--text); }

/* ---------- bands: one anchor + a stack, zig-zagging ---------- */
.hof-bands {
  --gap: 22px;
  display: grid;
  gap: 34px;
}

.hof-band {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--gap);
  /* capped so the 800px-wide source photos are never blown up in the anchor tiles */
  min-height: clamp(480px, 40vw, 560px);
}

/* mirrored bands: the stack comes first in the DOM as well (see HallMosaic) */
.hof-band.is-flip { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.32fr); }

.hof-band--0 {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(380px, 36vw, 480px);
}

.hof-band__stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

/* first places stand taller: the stack beside an anchor starts lower, like a podium */
@media (min-width: 768px) {
  .hof-band__stack { margin-top: clamp(30px, 3.4vw, 52px); }
}

.hof-slot {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0; /* min-height stays auto: a slot never shrinks below its tile's content */
}

.hof-slot--photo { flex-grow: 1.35; }
.hof-slot > .hof-tile { flex: 1 1 auto; }

/* ---------- solder joints: a trace with two vias across the gap, current flowing ---------- */
.hof-joint {
  position: absolute;
  top: 50%;
  right: 100%;
  z-index: 5;
  width: var(--gap);
  height: 2px;
  margin-top: -1px;
  pointer-events: none;
  background: rgba(var(--glow-rgb), 0.5);
  box-shadow: 0 0 8px rgba(var(--glow-rgb), 0.45);
  transition: opacity 0.6s ease 0.5s;
}

.hof-band.is-flip .hof-joint {
  right: auto;
  left: 100%;
}

.hof-joint::before,
.hof-joint::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #0d1311;
  border: 1.5px solid rgba(var(--glow-rgb), 0.8);
  box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.5);
}

.hof-joint::before { left: -5px; }
.hof-joint::after { right: -5px; }

.hof-joint__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(var(--glow-rgb), 0.9);
  opacity: 0;
  animation: hof-joint 2.6s ease-in-out infinite;
}

.hof-band.is-flip .hof-joint__pulse {
  left: 100%;
  animation-name: hof-joint-rev;
}

@keyframes hof-joint {
  0% { transform: translateX(0); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateX(var(--gap)); opacity: 0; }
}

@keyframes hof-joint-rev {
  0% { transform: translateX(0); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateX(calc(var(--gap) * -1)); opacity: 0; }
}

/* joints appear with their tile */
.hof-slot:has(> .hof-tile.pp-r:not(.pp-in)) .hof-joint {
  opacity: 0;
  transition: none;
}

/* ---------- tile ---------- */
.hof-tile {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--glass-line);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
  container-type: inline-size;
  transition: transform 0.8s var(--ease-soft), border-color 0.5s var(--ease), box-shadow 0.8s var(--ease-soft);
}

.hof-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--glow-rgb), 0.32);
}

/* the whole tile is the button (stretched ::after), the title stays a real heading */
.hof-tile__open {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.hof-tile__open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: var(--radius-lg);
}

.hof-tile__open:focus-visible { outline: none; }

.hof-tile__open:focus-visible::after {
  outline: 2px solid var(--green-3);
  outline-offset: -4px;
}

.hof-tile__title {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}

.hof-tile--anchor .hof-tile__title {
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hof-tile__rank {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 5px 15px 5px 5px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3 !important;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 14, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hof-tile__rank > span:last-child {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit;
}

.hof-tile__rank .hof-medal__ribbon { display: none; }
.hof-tile--gold .hof-tile__rank { color: var(--hof-gold-2); border-color: rgba(var(--hof-gold-rgb), 0.38); }
.hof-tile--silver .hof-tile__rank { color: #e6ece9; border-color: rgba(var(--hof-silver-rgb), 0.32); }

.hof-tile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: rgba(232, 238, 235, 0.8);
}

.hof-tile__meta > * {
  font-size: inherit !important;
  line-height: inherit !important;
}

.hof-tile__meta span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hof-tile__meta span::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(var(--glow-rgb));
}

.hof-tile__desc {
  max-width: 520px;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: rgba(232, 238, 235, 0.82);
}

.hof-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1.4 !important;
  color: var(--text);
  opacity: 0.78;
  transition: opacity 0.4s var(--ease);
}

.hof-tile__cta i {
  font-size: 12px;
  color: rgb(var(--glow-rgb));
  transition: transform 0.5s var(--ease-soft);
}

.hof-tile:hover .hof-tile__cta { opacity: 1; }
.hof-tile:hover .hof-tile__cta i { transform: translateX(5px); }

/* ---------- photo tiles (first & second places) ---------- */
.hof-tile--photo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 22px;
}

.hof-tile--anchor.hof-tile--photo { padding: 24px 30px 30px; }

.hof-tile__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hof-tile__media img {
  display: block;
  transform: scale(1.02);
  filter: saturate(0.9);
  transition: transform 1.4s var(--ease-soft), filter 0.8s var(--ease);
}

.hof-tile:hover .hof-tile__media img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

/* a soft frosted veil under the text, then a shade: busy photos never fight the title */
.hof-tile__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-backdrop-filter: blur(9px) saturate(1.05);
  backdrop-filter: blur(9px) saturate(1.05);
  -webkit-mask-image: linear-gradient(180deg, transparent var(--veil-from, 40%), #000 var(--veil-to, 74%));
  mask-image: linear-gradient(180deg, transparent var(--veil-from, 40%), #000 var(--veil-to, 74%));
}

.hof-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 12, 11, 0.55) 0%, rgba(8, 12, 11, 0) 20%, rgba(8, 12, 11, 0.04) 36%,
      rgba(8, 12, 11, 0.6) 58%, rgba(8, 12, 11, 0.9) 78%, rgba(8, 12, 11, 0.96) 100%),
    radial-gradient(120% 70% at 0% 100%, rgba(var(--glow-rgb), 0.24), transparent 60%);
}

.hof-tile--anchor .hof-tile__media { --veil-from: 48%; --veil-to: 76%; }
.hof-tile--anchor .hof-tile__media::after {
  background:
    linear-gradient(180deg, rgba(8, 12, 11, 0.55) 0%, rgba(8, 12, 11, 0) 18%, rgba(8, 12, 11, 0.02) 46%,
      rgba(8, 12, 11, 0.62) 66%, rgba(8, 12, 11, 0.9) 84%, rgba(8, 12, 11, 0.96) 100%),
    radial-gradient(120% 70% at 0% 100%, rgba(var(--glow-rgb), 0.24), transparent 60%);
}

.hof-tile__blank {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 64px;
  color: rgba(var(--glow-rgb), 0.35);
  background: radial-gradient(circle at 50% 35%, rgba(var(--glow-rgb), 0.16), transparent 60%), var(--surface-2);
}

.hof-tile__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* first places stand out: gold edge, warmer shadow, a glint now and then */
.hof-tile--gold {
  border-color: rgba(var(--hof-gold-rgb), 0.3);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95), 0 30px 80px -50px rgba(var(--hof-gold-rgb), 0.5);
}

.hof-tile--gold:hover {
  border-color: rgba(var(--hof-gold-rgb), 0.6);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95), 0 40px 90px -40px rgba(var(--hof-gold-rgb), 0.6);
}

.hof-tile__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 236, 190, 0.16) 48%, transparent 64%);
  transform: translateX(-110%);
}

.hof-tile--gold .hof-tile__shine { animation: hof-glint 9s var(--ease-soft) infinite; }
.hof-band.is-flip .hof-tile--gold .hof-tile__shine { animation-delay: 4.5s; }

@keyframes hof-glint {
  0% { transform: translateX(-110%); }
  22%, 100% { transform: translateX(110%); }
}

/* ---------- paper tiles (distinctions: certificates) ---------- */
.hof-tile--paper {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--glow-rgb), 0.17), transparent 56%),
    radial-gradient(rgba(232, 238, 235, 0.07) 1px, transparent 1.3px) 0 0 / 20px 20px,
    linear-gradient(160deg, #161f1c, #0f1513);
}

.hof-tile__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  height: 100%;
  padding: 24px 26px;
}

.hof-tile__sheet {
  position: relative;
  aspect-ratio: 1.42;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f1ea;
  transform: rotate(-4deg);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 5px rgba(255, 255, 255, 0.05),
    0 0 44px -12px rgba(var(--glow-rgb), 0.5);
  transition: transform 1s var(--ease-soft), box-shadow 0.8s var(--ease);
}

.hof-tile__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.2s var(--ease-soft);
}

.hof-tile--paper:hover .hof-tile__sheet {
  transform: rotate(-1deg) translateY(-4px) scale(1.03);
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.9), 0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 60px -10px rgba(var(--glow-rgb), 0.6);
}

.hof-tile--paper:hover .hof-tile__sheet::after { transform: translateX(120%); }

.hof-tile__sheet-blank {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 40px;
  color: #b9b2a2;
}

.hof-tile--paper .hof-tile__rank {
  gap: 12px;
  padding: 0;
  font-family: var(--headingFont);
  font-size: 18px !important;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--green-3);
  background: none;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hof-tile--paper.is-red .hof-tile__rank { color: #f6b0b3; }
.hof-tile--paper .hof-tile__rank .hof-medal__ribbon { display: block; }
.hof-tile--paper .hof-tile__title { margin-top: 6px; }

.hof-tile--paper .hof-tile__meta { color: var(--text-2); }

/* narrow paper tiles: the certificate sits above the text */
@container (max-width: 380px) {
  .hof-tile__inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 20px;
    padding: 24px 22px 22px;
  }

  .hof-tile__sheet { width: min(78%, 250px); }
}

/* a band with a single certificate beside its anchor: the sheet stands above the text, larger */
@media (min-width: 768px) {
  .hof-band--1 .hof-tile--paper .hof-tile__inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 34px;
    padding: 40px 40px 36px;
  }

  .hof-band--1 .hof-tile--paper .hof-tile__sheet {
    justify-self: center;
    width: min(88%, 400px);
  }
}

/* ================================================================
   CHARGE HISTORY — battery + energy meters
================================================================ */
.hof-charge {
  position: relative;
  padding-top: 130px;
}

.hof-battery { position: relative; }

.hof-battery__readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.hof-battery__level {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
}

.hof-battery__level strong {
  font-family: var(--headingFont);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.hof-battery__bolt {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--hof-gold);
  background: rgba(var(--hof-gold-rgb), 0.1);
  border: 1px solid rgba(var(--hof-gold-rgb), 0.26);
}

.hof-battery__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 12px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--green-2);
  background: rgba(76, 195, 138, 0.08);
  border: 1px solid rgba(76, 195, 138, 0.22);
}

.hof-battery__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: hof-blink 2.4s ease-in-out infinite;
}

@keyframes hof-blink { 50% { opacity: 0.35; } }

/* year ruler, aligned with the cells */
.hof-battery__years {
  display: grid;
  grid-template-columns: repeat(var(--cells), minmax(0, 1fr));
  gap: 12px;
  margin: 0 34px 12px 16px !important;
}

.hof-battery__years li {
  position: relative;
  padding: 10px 0 0 4px;
  border-top: 1px solid rgba(232, 238, 235, 0.18);
}

.hof-battery__years li::before,
.hof-battery__years li::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 7px;
  background: rgba(232, 238, 235, 0.32);
}

.hof-battery__years li::before { left: 0; }
.hof-battery__years li::after { right: 0; }

.hof-battery__years span {
  font-family: var(--headingFont);
  font-size: 17px !important;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3 !important;
  color: var(--text-2);
}

.hof-battery__shell {
  display: flex;
  align-items: center;
}

.hof-battery__cells {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--cells), minmax(0, 1fr));
  /* shared rows (when / charge space / rank / name): every cell lines its rank up with the others */
  grid-template-rows: auto minmax(52px, 1fr) auto auto;
  gap: 10px 12px;
  padding: 14px;
  border-radius: 30px;
  border: 2px solid rgba(232, 238, 235, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(9, 13, 12, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 50px rgba(0, 0, 0, 0.45),
    0 40px 80px -50px rgba(0, 0, 0, 0.95);
}

.hof-battery__terminal {
  position: relative;
  flex: none;
  width: 18px;
  height: 88px;
  overflow: hidden;
  border: 2px solid rgba(232, 238, 235, 0.16);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.03);
}

.hof-battery__terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--green-3), var(--green) 50%, var(--red));
  opacity: 0;
  transition: opacity 0.8s ease calc(var(--cells) * 180ms + 700ms);
}

.is-on .hof-battery__terminal::after { opacity: 0.85; }

/* ---------- cells ---------- */
.hof-cell {
  --cell-rgb: 76, 195, 138;
  --cell-ink: var(--green-3);
  --wash-rgb: 76, 195, 138;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  min-width: 0;
}

.hof-cell--gold { --cell-rgb: var(--hof-gold-rgb); --cell-ink: var(--hof-gold-2); }
.hof-cell--silver { --cell-rgb: var(--hof-silver-rgb); --cell-ink: #e6ece9; }
.hof-cell--bronze { --cell-rgb: 212, 154, 106; --cell-ink: #efc29c; }
.hof-cell--special.is-red { --cell-rgb: 229, 99, 106; --cell-ink: #f6b0b3; }

.hof-cell__btn {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-row: span 4;
  grid-template-rows: auto minmax(52px, 1fr) auto auto; /* fallback without subgrid */
  grid-template-rows: subgrid;
  justify-items: start;
  align-items: start;
  min-width: 0;
  padding: 16px 16px 18px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.6s var(--ease-soft), border-color 0.4s var(--ease);
}

.hof-cell__btn:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--cell-rgb), 0.5);
}

.hof-cell__btn:focus-visible {
  outline: 2px solid var(--green-3);
  outline-offset: 3px;
}

.hof-cell__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 1s var(--ease-soft) calc(var(--i) * 180ms + 200ms);
  /* a soft green → coral wash along the battery; the rank's metal only shows on the charge line */
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(var(--cell-rgb), 0.1), transparent 70%),
    linear-gradient(0deg, rgba(var(--wash-rgb), 0.2), rgba(var(--wash-rgb), 0.07) 62%, rgba(var(--wash-rgb), 0.02));
}

/* the charge level glows on top of each cell */
.hof-cell__fill::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(var(--cell-rgb), 0.9);
  box-shadow: 0 0 14px 2px rgba(var(--cell-rgb), 0.6);
}

.is-on .hof-cell__fill { transform: scaleY(1); }

.hof-cell__when {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--text-2);
}

.hof-cell__when { grid-row: 1; }

.hof-cell__rank {
  grid-row: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35 !important;
  color: var(--cell-ink);
}

.hof-cell__rank > span:last-child {
  font-size: inherit !important;
  line-height: inherit !important;
}

.hof-cell__name {
  grid-row: 4;
  font-family: var(--headingFont);
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.25 !important;
  color: var(--text);
}

/* ---------- radial gauges ---------- */
.hof-gauges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px !important;
}

.hof-gauge {
  --gauge: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}

.hof-gauge.is-gold { --gauge: var(--hof-gold); }
.hof-gauge.is-red { --gauge: var(--red); }

.hof-gauge__dial {
  position: relative;
  width: min(170px, 100%);
  aspect-ratio: 1;
}

.hof-gauge__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hof-gauge__ticks line {
  stroke: rgba(232, 238, 235, 0.22);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.hof-gauge__track {
  fill: none;
  stroke: rgba(232, 238, 235, 0.08);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 75 100;
}

.hof-gauge__fill {
  fill: none;
  stroke: var(--gauge);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: var(--fill) 100;
  stroke-dashoffset: calc(var(--fill) + 3);
  filter: drop-shadow(0 0 5px var(--gauge));
  transition: stroke-dashoffset 1.8s var(--ease-soft) 0.25s;
}

.is-on .hof-gauge__fill { stroke-dashoffset: 0; }

.hof-gauge__seg {
  fill: none;
  stroke: var(--green);
  stroke-width: 7;
  stroke-dasharray: var(--len) 100;
  stroke-dashoffset: var(--off);
  opacity: 0.12;
  transition: opacity 0.6s ease calc(var(--i) * 170ms + 200ms);
}

.hof-gauge__seg.is-gold { stroke: var(--hof-gold); }
.hof-gauge__seg.is-silver { stroke: var(--hof-silver); }
.hof-gauge__seg.is-bronze { stroke: #d49a6a; }
.hof-gauge__seg.is-special.tone-red { stroke: var(--red); }

.is-on .hof-gauge__seg { opacity: 1; }

.hof-gauge__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-top: 4px;
}

.hof-gauge__value strong {
  font-family: var(--headingFont);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.hof-gauge__value span {
  margin-top: 6px;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3 !important;
  text-transform: uppercase;
  color: var(--text-2);
}

.hof-gauge__label {
  margin-top: -2px !important;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.hof-gauge__note {
  margin-top: 4px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--text-2);
}

/* ================================================================
   DIALOG
================================================================ */
.hof-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.hof-dialog::backdrop {
  background:
    radial-gradient(800px 500px at 18% 12%, rgba(76, 195, 138, 0.16), transparent 62%),
    radial-gradient(800px 500px at 82% 88%, rgba(229, 99, 106, 0.14), transparent 62%),
    rgba(5, 8, 7, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hof-dialog[open] { animation: hof-dialog-in 0.6s var(--ease-soft); }
.hof-dialog[open]::backdrop { animation: hof-fade 0.45s ease; }

@keyframes hof-dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes hof-fade { from { opacity: 0; } }

.hof-dialog__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 30px;
  background:
    radial-gradient(520px 340px at 100% 0%, rgba(var(--glow-rgb), 0.14), transparent 62%),
    radial-gradient(420px 300px at 0% 100%, rgba(var(--hof-gold-rgb), 0.08), transparent 62%),
    #111816;
  border: 1px solid var(--glass-line);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95);
}

.hof-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text);
  background: rgba(10, 14, 13, 0.66);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease-soft);
}

.hof-dialog__close:hover {
  color: var(--green-ink);
  background: var(--green);
  transform: rotate(90deg);
}

.hof-dialog__close:focus-visible {
  outline: 2px solid var(--green-3);
  outline-offset: 3px;
}

.hof-dialog__media {
  position: relative;
  min-height: 420px;
  margin: 0 !important;
  overflow: hidden;
  background: var(--surface-2);
}

.hof-dialog__media img { position: absolute; inset: 0; }

.hof-dialog__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 70%, rgba(17, 24, 22, 0.6));
}

/* certificates are shown whole, like a framed document */
.hof-dialog__media.is-paper {
  display: grid;
  place-items: center;
  padding: 40px 34px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--glow-rgb), 0.2), transparent 62%),
    radial-gradient(rgba(232, 238, 235, 0.07) 1px, transparent 1.3px) 0 0 / 20px 20px,
    #0d1311;
}

.hof-dialog__media.is-paper::after { display: none; }

.hof-dialog__media.is-paper img {
  position: relative;
  inset: auto;
  height: auto !important;
  max-height: 100%;
  object-fit: contain !important;
  border-radius: 6px;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95), 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.hof-dialog__blank {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hof-dialog__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  padding-right: clamp(28px, 4.4vw, 60px);
}

.hof-dialog__rank {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px !important;
  font-size: 12.5px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--text-2);
}

.hof-dialog__rank > span:last-child {
  font-size: inherit !important;
  line-height: inherit !important;
}

.hof-dialog--gold .hof-dialog__rank { color: var(--hof-gold-2); }
.hof-dialog--special .hof-dialog__rank { color: var(--green-3); }
.hof-dialog--special.is-red .hof-dialog__rank { color: #f6b0b3; }

.hof-dialog__title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.hof-dialog__desc {
  margin-top: 20px !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--text-2);
}

.hof-dialog__foot { margin-top: 30px; }
.hof-dialog__foot .pp-btn--primary { color: var(--green-ink) !important; }

.hof-dialog__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.hof-dialog__note i {
  margin-top: 3px;
  color: rgb(var(--glow-rgb));
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1199.98px) {
  .hof-reactor { width: 190px; height: 190px; bottom: -64px; }
  .hof-reactor__core { width: 80px; height: 80px; font-size: 32px; }
  .hof-cell__name { font-size: 16px !important; }
}

/* below 1200px the battery stands up: terminal on top, charging from the bottom */
@media (max-width: 1199.98px) {
  .hof-battery__years { display: none; }

  .hof-battery__shell {
    flex-direction: column-reverse;
    align-items: center;
  }

  .hof-battery__cells {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    padding: 12px;
    border-radius: 26px;
  }

  .hof-battery__terminal {
    width: 92px;
    height: 16px;
    border: 2px solid rgba(232, 238, 235, 0.16);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  .hof-battery__terminal::after { background: linear-gradient(90deg, var(--green-3), var(--green) 50%, var(--red)); }

  .hof-cell { display: flex; grid-row: auto; grid-template-rows: none; }

  /* one row per award: rank in a fixed column so the names line up */
  .hof-cell__btn {
    flex: 1 1 auto;
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    grid-template-areas: "rank name when";
    align-items: center;
    gap: 6px 18px;
    min-height: 64px;
    padding: 14px 20px;
  }

  .hof-cell__rank { grid-area: rank; margin: 0; }
  .hof-cell__when { grid-area: when; justify-self: end; }
  .hof-cell__name { grid-area: name; font-size: 18px !important; }
  .hof-cell__fill {
    background:
      radial-gradient(60% 120% at 0% 50%, rgba(var(--cell-rgb), 0.1), transparent 70%),
      linear-gradient(90deg, rgba(var(--wash-rgb), 0.2), rgba(var(--wash-rgb), 0.07) 62%, rgba(var(--wash-rgb), 0.02));
  }
}

@media (max-width: 767.98px) {
  .hof-cell__btn {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "rank when" "name name";
    gap: 6px 14px;
    padding: 15px 18px 16px;
  }
}

@media (max-width: 991.98px) {
  .hof-spot__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "visual" "text";
    gap: 72px;
  }

  .hof-spot__visual { max-width: 640px; }
  .hof-reactor { left: auto; right: -24px; bottom: -70px; }

  .hof-credits__band { flex-direction: column; align-items: flex-start; }

  .hof-band,
  .hof-band.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }

  .hof-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  .hof-dialog__panel { grid-template-columns: minmax(0, 1fr); }
  .hof-dialog__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hof-dialog__media.is-paper { aspect-ratio: auto; padding: 34px 28px; }
  .hof-dialog__media::after { background: linear-gradient(180deg, transparent 70%, rgba(17, 24, 22, 0.7)); }
}

@media (max-width: 767.98px) {
  .hof-band,
  .hof-band.is-flip {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hof-slot { flex: none; display: block; }
  .hof-joint { display: none; }
  .hof-tile--anchor { min-height: 500px; }
  .hof-tile--stack.hof-tile--paper { min-height: 0; }

  /* stacked photo tiles become compact cards: photo on top, text below */
  .hof-tile--stack.hof-tile--photo {
    min-height: 0;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }

  .hof-tile--stack.hof-tile--photo .hof-tile__media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
  }

  .hof-tile--stack.hof-tile--photo .hof-tile__media img {
    position: absolute;
    inset: 0;
  }

  .hof-tile--stack.hof-tile--photo .hof-tile__media::before { display: none; }

  .hof-tile--stack.hof-tile--photo .hof-tile__media::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 11, 0.45) 0%, rgba(8, 12, 11, 0) 30%, rgba(8, 12, 11, 0) 70%, var(--surface) 100%);
  }

  .hof-tile--stack.hof-tile--photo .hof-tile__rank {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
  }

  .hof-tile--stack.hof-tile--photo .hof-tile__body { padding: 6px 20px 22px; }

  .hof-tile--anchor .hof-tile__media { --veil-from: 30%; --veil-to: 56%; }
  .hof-tile--anchor .hof-tile__media::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 11, 0.5) 0%, rgba(8, 12, 11, 0) 16%, rgba(8, 12, 11, 0.06) 28%,
        rgba(8, 12, 11, 0.7) 48%, rgba(8, 12, 11, 0.92) 66%, rgba(8, 12, 11, 0.97) 100%),
      radial-gradient(120% 70% at 0% 100%, rgba(var(--glow-rgb), 0.24), transparent 60%);
  }

  /* the dialog becomes a bottom sheet */
  .hof-dialog {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
  }

  .hof-dialog__panel {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
  }

  .hof-dialog[open] { animation: hof-sheet-in 0.55s var(--ease-soft); }

  @keyframes hof-sheet-in {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

@media (max-width: 575.98px) {
  .hof-spot__card { border-radius: 28px; gap: 64px; }
  .hof-spot__frame { border-radius: 22px; transform: rotate(1deg); }
  .hof-spot__photo { border-radius: 21px; aspect-ratio: 4 / 3; }
  .hof-reactor { width: 150px; height: 150px; right: -10px; bottom: -58px; }
  .hof-reactor__core { width: 62px; height: 62px; font-size: 25px; }
  .hof-reactor__rays { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .hof-reactor__rays.is-b { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .hof-spot__desc { font-size: 16px !important; }
  .hof-spot__actions .pp-btn { flex: 1 1 auto; justify-content: center; }

  .hof-credits { padding-top: 72px; }
  .hof-credit { padding: 10px 18px 10px 30px; }
  .hof-credit__name { font-size: 17px !important; white-space: normal; }

  .hof-hall { padding-top: 100px; }
  .hof-tile--photo { padding: 18px 18px 20px; }
  .hof-tile--anchor.hof-tile--photo { padding: 20px 20px 24px; }

  .hof-charge { padding-top: 100px; }
  .hof-gauges { gap: 12px; }
  .hof-gauge { padding: 20px 12px 20px; }
  .hof-gauge__value strong { font-size: 38px; }
  .hof-gauge__label { font-size: 16px; }
  .hof-gauge__note { font-size: 13px !important; }

  .hof-dialog__body { padding: 26px 22px 30px; }
  .hof-dialog__desc { font-size: 16px !important; }
  .hof-dialog__foot .pp-btn { width: 100%; justify-content: center; }
}

/* ================================================================
   OFF-SCREEN — decorative loops pause until their section is in view
   (is-live is toggled by an IntersectionObserver in SpotlightHero / HallMosaic)
================================================================ */
.hof-spot__card:not(.is-live) *,
.hof-spot__card:not(.is-live) *::before,
.hof-spot__card:not(.is-live) *::after,
.hof-hall:not(.is-live) *,
.hof-hall:not(.is-live) *::before,
.hof-hall:not(.is-live) *::after { animation-play-state: paused !important; }

/* ================================================================
   REDUCED MOTION — still and fully readable
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .hof-reactor__rays,
  .hof-spot__frame::after,
  .hof-tile__shine,
  .hof-kicker__dot,
  .hof-battery__led,
  .hof-dialog[open],
  .hof-dialog[open]::backdrop { animation: none !important; }

  .hof-spark,
  .hof-reactor__shock,
  .hof-tile__shine,
  .hof-joint__pulse { display: none; }

  .hof-joint { opacity: 1 !important; transition: none !important; }
  .hof-medal__disc { transition: none !important; transform: none !important; }

  .hof-spot__frame,
  .hof-tile,
  .hof-tile__media img,
  .hof-tile__sheet,
  .hof-tile__sheet::after,
  .hof-cell__btn,
  .hof-dialog__close { transition: none !important; }

  .hof-tile:hover,
  .hof-cell__btn:hover { transform: none; }

  .hof-tile:hover .hof-tile__media img { transform: scale(1.02); }

  .hof-cell__fill,
  .hof-gauge__fill,
  .hof-gauge__seg,
  .hof-battery__terminal::after { transition: none !important; }

  .hof-cell__fill { transform: none; }
  .hof-gauge__fill { stroke-dashoffset: 0; }
  .hof-gauge__seg { opacity: 1; }
  .hof-battery__terminal::after { opacity: 0.85; }
}
