/* ============================================================
   BOYZ IN MOTION — Dark islands
   The Hall of Fame page and the trophy cabinet keep their
   original dark-and-gold look (DESIGN.md, D-013). The two blocks
   marked VERBATIM below are the old styles, unchanged. Only the
   scoping at the top and the framing at the bottom are new.
   ============================================================ */

/* ─── Scope: the old dark tokens, only inside the islands ────── */
.hof-page,
.trophy-cabinet-overlay {
  --bg-primary:    #080A10;
  --bg-surface:    #0E1018;
  --bg-surface-2:  #131623;
  --bg-surface-3:  #1A1D2E;
  --text-primary:  #E8EAF0;
  --text-secondary:#8A8D9A;
  --text-muted:    #4E5166;
  --border:        rgba(255, 255, 255, 0.055);
  --border-mid:    rgba(255, 255, 255, 0.10);
  --silver:        #9DA0A8;
  --silver-bright: #C8CAD0;
  --font-display:  'Cinzel', Georgia, serif;
  --font-heading:  'Cinzel', Georgia, serif;
  --font-body:     'Raleway', sans-serif;
  --font-data:     'Rajdhani', sans-serif;
  --radius:        4px;
  --radius-lg:     8px;
  --radius-xl:     14px;
}

/* ─── Framing: the Hall of Fame as a dark room on the paper ──── */
.hof-page {
  --nav-height: 0px;
  background: #080A10;
  color: #E8EAF0;
  min-height: 0;
  margin: calc(64px + var(--gutter)) var(--gutter) var(--gutter);
  border-radius: 20px;
  overflow: hidden;
}

.hof-page .avatar {
  background: #131623 !important;
  border-color: #0E1018;
  outline-color: rgba(255, 255, 255, 0.10);
}
.hof-page .avatar-fallback { color: #C8CAD0; }
.hof-page a:hover { text-decoration: none; }
.hof-page h3 { text-transform: uppercase; }

/* ════════════════ VERBATIM: Hall of Fame ════════════════ */
/* ─── Hall of Fame ────────────────────────────────────────────── */

/* HOF color tokens */
:root {
  --hof-gold:        #C9A84C;
  --hof-gold-light:  #E8C870;
  --hof-gold-pale:   #F0D99A;
  --hof-gold-glow:   rgba(201, 168, 76, 0.22);
  --hof-gold-subtle: rgba(201, 168, 76, 0.08);
}

/* ── Keyframes ───────────────────── */
@keyframes hof-gold-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes hof-plaque-reveal {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes hof-banner-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page wrapper ────────────────── */
.hof-page {
  padding-top: 0 !important;
}

/* ── Hero ────────────────────────── */
.hof-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: calc(var(--nav-height) + 3.5rem) 1.25rem 3.5rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(201, 168, 76, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(200, 202, 208, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #07080D 0%, var(--bg-primary) 100%);
}

.hof-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 18px,
    rgba(255, 255, 255, 0.007) 18px, rgba(255, 255, 255, 0.007) 19px
  );
  pointer-events: none;
}

.hof-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hof-gold-glow), transparent);
}

.hof-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hof-hero-eyebrow {
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--hof-gold);
  opacity: 0.65;
  margin-bottom: 0.9rem;
  animation: fadeInUp 0.6s ease both;
}

.hof-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1;
  background: linear-gradient(
    90deg,
    var(--hof-gold)      0%,
    var(--hof-gold-pale) 25%,
    #FFF8EC              50%,
    var(--hof-gold-pale) 75%,
    var(--hof-gold)      100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hof-gold-shimmer 5s linear infinite, fadeInUp 0.6s ease 0.1s both;
}

.hof-emblem-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 380px;
  margin: 1.5rem auto;
  animation: fadeIn 0.6s ease 0.3s both;
}

.hof-rule-line { flex: 1; height: 1px; }
.hof-rule-left  { background: linear-gradient(to left,  rgba(201,168,76,0.5), transparent); }
.hof-rule-right { background: linear-gradient(to right, rgba(201,168,76,0.5), transparent); }

.hof-emblem-star {
  color: var(--hof-gold);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
  filter: drop-shadow(0 0 7px var(--hof-gold-glow));
}

.hof-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  line-height: 1.75;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* ── Content area ────────────────── */
.hof-content {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.hof-classes {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ── Class banner ────────────────── */
.hof-class-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  opacity: 0;
}

.hof-class-banner.hof-banner-visible {
  animation: hof-banner-fade 0.65s ease forwards;
}

.hof-banner-arm { flex: 1; max-width: 200px; height: 1px; }
.hof-arm-left  { background: linear-gradient(to left,  rgba(201,168,76,0.55), transparent); }
.hof-arm-right { background: linear-gradient(to right, rgba(201,168,76,0.55), transparent); }

.hof-banner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  white-space: nowrap;
}

.hof-banner-pre {
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--hof-gold);
  opacity: 0.6;
}

.hof-banner-year {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}

/* ── Plaque grid ─────────────────── */
.hof-plaques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px) {
  .hof-plaques { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hof-plaques { grid-template-columns: 1fr; }
}

/* ── Scroll reveal ───────────────── */
.hof-plaque-hidden {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
}

.hof-plaque-visible {
  animation: hof-plaque-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 65ms);
}

/* ── Plaque card ─────────────────── */
/* Outer wrapper acts as the gradient border */
.hof-plaque {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(201, 168, 76, 0.38) 0%,
    rgba(201, 168, 76, 0.06) 40%,
    rgba(201, 168, 76, 0.06) 60%,
    rgba(201, 168, 76, 0.38) 100%
  );
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Intensified border revealed on hover */
.hof-plaque::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(201, 168, 76, 0.78) 0%,
    rgba(201, 168, 76, 0.22) 40%,
    rgba(201, 168, 76, 0.22) 60%,
    rgba(201, 168, 76, 0.78) 100%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.hof-plaque:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(201, 168, 76, 0.07);
}

.hof-plaque:hover::before { opacity: 1; }

/* Inner surface with grain texture */
.hof-plaque-inner {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 1.75rem 1.4rem 1.5rem;
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 14px,
      rgba(255, 255, 255, 0.006) 14px, rgba(255, 255, 255, 0.006) 15px
    ),
    linear-gradient(160deg, #111520 0%, #0D1018 55%, #0A0C14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  height: 100%;
}

/* Laurel wreath seal */
.hof-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px var(--hof-gold-glow));
  margin-bottom: 0.1rem;
  transition: filter 0.28s ease, transform 0.28s ease;
}

.hof-seal-wreath svg {
  width: 56px;
  height: auto;
}

.hof-plaque:hover .hof-seal {
  filter: drop-shadow(0 3px 16px rgba(201, 168, 76, 0.6));
  transform: scale(1.12);
}

/* Team name — hero of the card */
.hof-team-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--hof-gold-pale);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 0 22px rgba(201, 168, 76, 0.1);
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.hof-plaque:hover .hof-team-name {
  color: #FFF8EC;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 0 28px rgba(201, 168, 76, 0.35);
}

/* Gradient divider below team name */
.hof-name-divider {
  width: 65%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.38), transparent);
  flex-shrink: 0;
}

/* Meta section */
.hof-plaque-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.hof-manager {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hof-manager-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hof-plaque-data {
  display: flex;
  gap: 1.25rem;
}

.hof-data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.hof-data-label {
  font-family: var(--font-data);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hof-data-value {
  font-family: var(--font-data);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ── Empty state ─────────────────── */
.hof-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem 2rem;
  color: var(--text-muted);
  text-align: center;
}

.hof-empty-icon { font-size: 3rem; opacity: 0.3; }

.hof-empty h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.10em;
}

.hof-empty p { font-size: 0.85rem; }


/* ════════════════ VERBATIM: Trophy cabinet ════════════════ */
/* ─── Trophy Cabinet Modal ────────────────────────────────────── */
.trophy-cabinet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.trophy-cabinet-overlay.tc-visible { opacity: 1; }

.trophy-cabinet {
  --tc-gold:        #C9A84C;
  --tc-gold-light:  #E8C870;
  --tc-gold-dark:   #8B6914;
  --tc-gold-border: rgba(201,168,76,0.28);
  --tc-text:        #F0E6CC;
  --tc-text-muted:  rgba(240,230,204,0.42);
  --tc-serif:       'Cormorant Garamond', Georgia, serif;
  --tc-sans:        'Rajdhani', sans-serif;
  --tc-pillar-w:    18px;
  width: min(860px, 100%);
  border: 1px solid var(--tc-gold-border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 0 80px rgba(201,168,76,0.07),
    0 60px 120px rgba(0,0,0,0.85);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trophy-cabinet-overlay.tc-visible .trophy-cabinet {
  transform: translateY(0) scale(1);
}

/* Glass front reflection */
.trophy-cabinet::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(255,255,255,0.045) 0%,
    rgba(255,255,255,0.012) 25%,
    transparent 55%);
  pointer-events: none;
  z-index: 10;
  border-radius: 3px;
}

/* ─── Cabinet Header ──────────────────────────────────────────── */
.tc-header {
  background: linear-gradient(180deg, #111116 0%, #0A0A0C 100%);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tc-gold-border);
  position: relative;
  flex-shrink: 0;
}

.tc-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tc-gold), transparent);
  opacity: 0.5;
}

.tc-eyebrow {
  font-family: var(--tc-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--tc-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.tc-title {
  font-family: var(--tc-serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--tc-gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.tc-close {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: var(--tc-sans);
}

.tc-close:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* ─── Body: pillars + interior ────────────────────────────────── */
.tc-body {
  display: flex;
  background: #06060A;
  overflow-y: auto;
  max-height: 82vh;
  min-height: 0;
}

.tc-pillar {
  width: var(--tc-pillar-w);
  flex-shrink: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.5) 0%,
    rgba(201,168,76,0.06) 30%,
    rgba(201,168,76,0.09) 50%,
    rgba(201,168,76,0.06) 70%,
    rgba(0,0,0,0.5) 100%);
}

.tc-pillar:first-child { border-right: 1px solid rgba(201,168,76,0.15); }
.tc-pillar:last-child  { border-left:  1px solid rgba(201,168,76,0.15); }

.tc-interior {
  flex: 1;
  background: linear-gradient(180deg, #08080C 0%, #0A0A0E 100%);
  position: relative;
  overflow: visible;
}

/* Deep corner vignettes */
.tc-interior::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 25% 100% at 0% 50%, rgba(0,0,0,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 25% 100% at 100% 50%, rgba(0,0,0,0.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* ─── Shelf Section ───────────────────────────────────────────── */
.tc-shelf-section {
  padding: 2rem 2rem 0;
  position: relative;
}

.tc-shelf-label {
  font-family: var(--tc-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tc-gold);
  opacity: 0.65;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tc-shelf-label::before,
.tc-shelf-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.25));
}

.tc-shelf-label::after {
  background: linear-gradient(to left, transparent, rgba(201,168,76,0.25));
}

/* Items row */
.tc-item-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── Glass Shelf Board ───────────────────────────────────────── */
.tc-shelf-board {
  height: 9px;
  margin: 0 -2rem;
  position: relative;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.01) 100%);
  border-top: 1px solid rgba(255,255,255,0.22);
}

.tc-shelf-board::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8%; right: 8%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,234,148,0.9);
  box-shadow:
    0 0 5px 1px rgba(255,218,100,0.88),
    0 0 14px 5px rgba(255,192,55,0.42),
    0 0 32px 10px rgba(255,172,28,0.16);
}

.tc-shelf-board::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 60px;
  background: radial-gradient(ellipse 85% 100% at 50% 0%,
    rgba(255,214,100,0.16) 0%,
    rgba(255,184,48,0.05) 45%,
    transparent 70%);
  pointer-events: none;
}

.tc-shelf-section:last-child {
  padding-bottom: 1.25rem;
}

/* ─── Spotlight Beams ─────────────────────────────────────────── */
.tc-spotlight-beam {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 110px;
  background: linear-gradient(180deg,
    rgba(255,240,185,0.0) 0%,
    rgba(255,240,185,0.055) 75%,
    rgba(255,240,185,0.025) 100%);
  clip-path: polygon(38% 0%, 62% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Cabinet Base ────────────────────────────────────────────── */
.tc-base {
  background: linear-gradient(180deg, #0E0E12 0%, #08080C 100%);
  height: 18px;
  border-top: 1px solid var(--tc-gold-border);
  position: relative;
  flex-shrink: 0;
}

.tc-base::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

/* ─── Trophy Item (Lombardi — Championships) ──────────────────── */
.tc-trophy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  cursor: default;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: tc-fade-up 0.6s ease both;
}

.tc-trophy-item:hover { transform: translateY(-9px); }

.tc-trophy-svg-wrap {
  position: relative;
  filter: drop-shadow(0 5px 14px rgba(201,168,76,0.38));
  transition: filter 0.3s;
}

.tc-trophy-item:hover .tc-trophy-svg-wrap {
  filter: drop-shadow(0 10px 28px rgba(201,168,76,0.78));
}

.tc-trophy-glow-pool {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tc-trophy-item:hover .tc-trophy-glow-pool { opacity: 1.8; }

.tc-trophy-year {
  font-family: var(--tc-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tc-gold-light);
  letter-spacing: 0.04em;
  line-height: 1;
}

.tc-trophy-name {
  font-family: var(--tc-sans);
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--tc-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Medal Item (Awards / Poop / Rivalry) ────────────────────── */
.tc-medal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  cursor: default;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: tc-fade-up 0.6s ease both;
}

.tc-medal-item:hover { transform: translateY(-9px); }

/* A rivalry trophy nobody has won yet: present but clearly not earned. */
.tc-trophy-unwon {
  opacity: 0.55;
  filter: saturate(0.45);
}

.tc-trophy-unwon .tc-spotlight-beam { opacity: 0.35; }
.tc-trophy-unwon .tc-trophy-glow-pool { opacity: 0.3; }

.tc-trophy-unwon:hover {
  opacity: 0.92;
  filter: saturate(0.9);
}

/* The rivalry name sits in the slot a championship year would use, so it needs
   to read as a name rather than a four-digit number. */
.tc-trophy-rivalry-name {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 92px;
  line-height: 1.25;
}

/* Rivalry trophies carry their own metal colour, so the gold hover glow that
   suits the Lombardi would fight them. */
.tc-trophy-item:hover .tc-trophy-rivalry {
  filter: brightness(1.15) drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}

.tc-medal-svg-wrap {
  position: relative;
  filter: drop-shadow(0 5px 16px rgba(0,0,0,0.7));
  transition: filter 0.3s;
}

.tc-medal-item:hover .tc-medal-svg-wrap {
  filter: drop-shadow(0 10px 26px rgba(201,168,76,0.38));
}

.tc-medal-glow-pool {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tc-medal-item:hover .tc-medal-glow-pool { opacity: 1.8; }

.tc-medal-label {
  font-family: var(--tc-sans);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--tc-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  max-width: 78px;
  line-height: 1.35;
  /* The shelf row is align-items:flex-end, so a label that wraps to a second
     line would otherwise shove its medal up out of line with its neighbours.
     Reserving two lines for every label keeps the whole row level. */
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hall of Fame labels are team names, which run much longer than award names —
   give them room so they land in two lines rather than three. */
.tc-medal-item-hof .tc-medal-label {
  max-width: 104px;
}

.tc-medal-year {
  font-family: var(--tc-serif);
  font-size: 0.82rem;
  color: var(--tc-gold);
  opacity: 0.55;
  line-height: 1;
}

/* ─── Tooltip ─────────────────────────────────────────────────── */
.tc-tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,8,12,0.97);
  border: 1px solid rgba(201,168,76,0.38);
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 50;
  box-shadow: 0 10px 32px rgba(0,0,0,0.85);
}

.tc-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(201,168,76,0.38);
}

.tc-trophy-item:hover .tc-tip,
.tc-medal-item:hover .tc-tip { opacity: 1; }

.tc-tip-wrap {
  white-space: normal;
  text-align: center;
  width: 200px;
}

.tip-title {
  font-family: var(--tc-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tc-gold-light);
  line-height: 1.2;
}

.tip-sub {
  font-family: var(--tc-sans);
  font-size: 0.63rem;
  color: var(--tc-text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.08em;
}

/* Empty state */
.tc-empty-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--tc-text-muted, rgba(240,230,204,0.42));
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ─── Animations ──────────────────────────────────────────────── */
@keyframes tc-shimmer-sweep {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(100px); }
}

@keyframes tc-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .tc-shelf-section { padding: 1.5rem 1rem 0; }
  .tc-shelf-board { margin: 0 -1rem; }
  .tc-item-row { gap: 0.75rem; }
  .trophy-cabinet { --tc-pillar-w: 10px; }
}

/* ─── Position Award Cards ────────────────────────────────────── */
.tc-pos-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  animation: tc-fade-up 0.6s ease both;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
  position: relative;
}

.tc-pos-wrap:hover {
  transform: translateY(-12px) rotate(2deg);
  filter: drop-shadow(0 18px 36px color-mix(in srgb, var(--pos-color, #555) 55%, transparent));
}

.tc-pos-card {
  width: 100px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 8px,
      rgba(255,255,255,0.022) 8px, rgba(255,255,255,0.022) 9px
    ),
    #0f0f16;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}

.tc-pos-wrap:hover .tc-pos-card {
  box-shadow:
    0 4px 18px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 28px var(--pos-color, #555);
}

.tc-pos-header {
  height: 36px;
  background: var(--pos-color, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.tc-pos-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
}

.tc-pos-badge {
  font-family: 'Rajdhani', var(--font-heading, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.tc-pos-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.5rem 0.45rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tc-pos-football {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.tc-pos-player {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #F0E6CC;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.tc-pos-divider {
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pos-color, #555), transparent);
  margin: 0 auto 0.3rem;
}

.tc-pos-pts {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #E8C870;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.22rem;
}

.tc-pos-pts-lbl {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.65;
  letter-spacing: 0.1em;
}

.tc-pos-owner {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  color: rgba(240,230,204,0.42);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tc-pos-year {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  color: rgba(201,168,76,0.45);
  text-align: center;
  padding: 0.3rem 0.3rem 0.45rem;
  letter-spacing: 0.15em;
  flex-shrink: 0;
}

/* Holographic shine sweep */
.tc-pos-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.20) 48%,
    rgba(255,255,255,0.08) 53%,
    transparent 63%
  );
  background-size: 250% 100%;
  background-position: -250% 0;
  pointer-events: none;
}

.tc-pos-wrap:hover .tc-pos-shine {
  animation: tc-holo-sweep 0.6s ease forwards;
}

@keyframes tc-holo-sweep {
  from { background-position: -250% 0; }
  to   { background-position: 250% 0; }
}

/* Card stand + floor shadow */
.tc-pos-stand {
  width: 36px;
  height: 7px;
  background: linear-gradient(180deg, #3a3020 0%, #1a1510 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.tc-pos-shadow {
  width: 78px;
  height: 7px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: 3px;
}


/* ─── Framing: cabinet scrim, and the close button on light modals ── */
.trophy-cabinet-overlay { z-index: 1002; }

.trophy-cabinet-overlay .avatar {
  background: #131623 !important;
  border-color: #0E1018;
  outline-color: rgba(255, 255, 255, 0.10);
}

/* .tc-close is reused by the head-to-head and box score modals, which are light */
.h2h-modal .tc-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  font-family: var(--font-body);
  width: 28px;
  height: 28px;
}
.h2h-modal .tc-close:hover {
  background: var(--bg-surface-2);
  border-color: var(--text-faint);
  color: var(--text-primary);
}
