/* ================================================================
   AXIOM · ranking-patch.css v4.1.0 — 排行榜页样式（合并产物）
   v4.1.0 2026-09-28：药丸标签 overflow 改为始终横向滚动；渐进展开 33→66→100；
                      updateRankingPill 加 scrollLeft 偏移和 scroll 事件；tab 补 ranking-row class
   v4.0.0：原 ranking-patch.css（@layer axiom-ranking）+ ranking.php 内联 <style>（无层，保留在后）
   合并原则: 无层规则胜于有层规则 = 内联覆盖 patch 的原行为不变
   ================================================================ */

/* ================================================================
   AXIOM · Dark Gold Era — Ranking Page Patch v4.0
   ================================================================
   Target: ranking.php
   Features:
   1. Gold sliding tab indicator
   2. Hall of Fame 3D flip cards (top 3 only)
   3. Liquid metal gold progress bars
   4. Ranking table refinement
   ================================================================ */

@layer axiom-ranking {

  /* ==============================================================
     RANKING HEADER — Luxurious Title
     ============================================================== */

  .ranking-header h1 {
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    background: linear-gradient(
      135deg,
      var(--axiom-gold-100, oklch(88% 0.10 85)) 0%,
      var(--axiom-gold-300, oklch(78% 0.18 85)) 40%,
      var(--axiom-gold-500, oklch(65% 0.19 75)) 70%,
      var(--axiom-gold-600, oklch(55% 0.17 70)) 100%
    ) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 0.15em !important;
    font-weight: 700 !important;
    filter: drop-shadow(0 0 40px oklch(78% 0.18 85 / 0.3));
  }

  .ranking-header h1::before,
  .ranking-header h1::after {
    color: var(--axiom-gold, #D4A55A) !important;
    -webkit-text-fill-color: var(--axiom-gold, #D4A55A) !important;
    opacity: 0.5 !important;
  }

  .ranking-subtitle {
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    color: var(--axiom-gray-500, oklch(52% 0.013 260)) !important;
    letter-spacing: 0.3em !important;
    font-weight: 500 !important;
  }

  /* ==============================================================
     TAB SLIDING INDICATOR (Gold, Animated)
     ============================================================== */

  .ranking-tabs {
    position: relative !important;
    display: flex !important;
    gap: 6px !important;
    background: var(--axiom-black-soft, #0a0a0c) !important;
    border: 1px solid oklch(78% 0.18 85 / 0.08) !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: 6px 8px !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 179, 66, 0.25) transparent;
    /* Sliding pill position — driven by JS */
    --pill-left: 0px;
    --pill-width: 0px;
  }

  .ranking-tabs::-webkit-scrollbar {
    height: 4px;
  }
  .ranking-tabs::-webkit-scrollbar-track {
    background: transparent;
  }
  .ranking-tabs::-webkit-scrollbar-thumb {
    background: rgba(245, 179, 66, 0.25);
    border-radius: 2px;
  }

  .ranking-tab {
    position: relative !important;
    z-index: 2 !important;
    flex: 1;
    padding: 11px 10px !important;
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--axiom-gray-400, oklch(62% 0.012 260)) !important;
    background: transparent !important;
    border: none !important;
    border-radius: var(--radius-md, 10px) !important;
    cursor: pointer;
    transition:
      color var(--duration-fast, 150ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)),
      background-color var(--duration-fast, 150ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
    white-space: nowrap;
    letter-spacing: 0.02em !important;
  }

  .ranking-tab:hover {
    color: var(--axiom-gray-100, oklch(92% 0.008 260)) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  .ranking-tab.active {
    color: var(--axiom-black, #050505) !important;
    font-weight: 600 !important;
  }

  /* Hall of Fame tab — subtle gold accent even when inactive */
  .ranking-tab[data-tab="7"] {
    color: oklch(78% 0.18 85 / 0.7) !important;
  }
  .ranking-tab[data-tab="7"]:hover {
    color: var(--axiom-gold-200, oklch(83% 0.14 85)) !important;
  }

  /* Sliding gold indicator pill — driven by CSS variables from JS */
  .ranking-tabs::after {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: var(--pill-width, 0px);
    background: linear-gradient(
      135deg,
      var(--axiom-gold-200, oklch(83% 0.14 85)) 0%,
      var(--axiom-gold-400, oklch(72% 0.20 80)) 50%,
      var(--axiom-gold-500, oklch(65% 0.19 75)) 100%
    );
    border-radius: var(--radius-md, 10px);
    box-shadow:
      0 4px 20px oklch(78% 0.18 85 / 0.3),
      0 0 40px oklch(78% 0.18 85 / 0.15);
    transition:
      transform var(--duration-normal, 280ms) var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),
      width var(--duration-normal, 280ms) var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),
      opacity 200ms ease;
    transform: translateX(var(--pill-left, 0px));
    z-index: 1;
    pointer-events: none;
    opacity: 0;
  }

  .ranking-tabs.has-init::after {
    opacity: 1;
  }

  /* ==============================================================
     STAT HERO CARDS — Dark Gold Atmosphere
     ============================================================== */

  .stat-hero-card {
    background: linear-gradient(
      145deg,
      rgba(12, 12, 16, 0.7) 0%,
      rgba(6, 6, 10, 0.85) 100%
    ) !important;
    border: 1px solid oklch(78% 0.18 85 / 0.08) !important;
    border-radius: var(--radius-xl, 20px) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    transition:
      border-color var(--duration-normal, 250ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)),
      transform var(--duration-normal, 250ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)),
      box-shadow var(--duration-normal, 250ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)) !important;
  }

  .stat-hero-card::before {
    background: linear-gradient(
      90deg,
      transparent 0%,
      oklch(78% 0.18 85 / 0.3) 50%,
      transparent 100%
    ) !important;
  }

  .stat-hero-card::after {
    background: radial-gradient(
      circle,
      oklch(78% 0.18 85 / 0.08) 0%,
      transparent 70%
    ) !important;
  }

  .stat-hero-card:hover {
    border-color: oklch(78% 0.18 85 / 0.2) !important;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.5),
      0 0 40px oklch(78% 0.18 85 / 0.1) !important;
  }

  .stat-hero-card.total-card {
    background: linear-gradient(
      145deg,
      rgba(30, 22, 10, 0.6) 0%,
      rgba(15, 10, 4, 0.8) 100%
    ) !important;
    border-color: oklch(78% 0.18 85 / 0.2) !important;
  }

  .stat-hero-card.total-card::after {
    background: radial-gradient(
      circle,
      oklch(78% 0.18 85 / 0.15) 0%,
      transparent 70%
    ) !important;
  }

  /* ==============================================================
     HALL OF FAME — 3D Card Flip (Top 3 Only)
     ==============================================================
     Front: Medal / Rank + Player Name
     Back: Achievement Details
     Only applies to first 3 .hof-record-card elements
     ============================================================== */

  .hof-records-grid {
    perspective: 1200px;
  }

  /* Base 3D setup for all HOF cards */
  .hof-record-card {
    transform-style: preserve-3d;
    transition:
      transform var(--duration-slower, 600ms) var(--ease-emphasized, cubic-bezier(0.2, 0.8, 0.2, 1)),
      box-shadow var(--duration-slower, 600ms) var(--ease-emphasized, cubic-bezier(0.2, 0.8, 0.2, 1));
  }

  /* Top 3 cards get 3D flip on hover */
  .hof-records-grid .hof-record-card:nth-child(-n+3) {
    cursor: pointer;
    min-height: 200px;
  }

  .hof-records-grid .hof-record-card:nth-child(-n+3):hover {
    transform: translateY(-6px) rotateY(180deg);
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.6),
      0 0 60px oklch(78% 0.18 85 / 0.2);
  }

  /* Front face (default visible) */
  .hof-record-card > * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Create back face via pseudo-element on flip cards */
  .hof-records-grid .hof-record-card:nth-child(-n+3)::before {
    /* Keep the existing top border line */
    z-index: 3;
  }

  /* Back face content container — created by duplicating content via CSS
     Since we can't modify HTML, we use the existing content structure
     and flip the entire card, hiding the front on flip */

  /* HOF header refinement */
  .hof-header {
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, oklch(78% 0.18 85 / 0.1) 0%, transparent 60%),
      linear-gradient(180deg, rgba(8, 6, 12, 0.95) 0%, rgba(5, 4, 8, 0.98) 100%) !important;
    border: 1px solid oklch(78% 0.18 85 / 0.12) !important;
    border-radius: var(--radius-2xl, 24px) !important;
  }

  .hof-header::before {
    background: linear-gradient(
      90deg,
      transparent 0%,
      oklch(78% 0.18 85 / 0.06) 50%,
      transparent 100%
    ) !important;
  }

  .hof-main-title {
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    background: linear-gradient(
      135deg,
      var(--axiom-gold-100, oklch(88% 0.10 85)) 0%,
      var(--axiom-gold-300, oklch(78% 0.18 85)) 40%,
      var(--axiom-gold-500, oklch(65% 0.19 75)) 70%,
      var(--axiom-gold-600, oklch(55% 0.17 70)) 100%
    ) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 30px oklch(78% 0.18 85 / 0.25)) !important;
  }

  .hof-sub-title {
    color: oklch(78% 0.18 85 / 0.5) !important;
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-weight: 500 !important;
  }

  .hof-divider-line {
    background: linear-gradient(
      90deg,
      transparent,
      oklch(78% 0.18 85 / 0.4),
      transparent
    ) !important;
  }

  .hof-divider-ornament {
    color: var(--axiom-gold, #D4A55A) !important;
    filter: drop-shadow(0 0 8px oklch(78% 0.18 85 / 0.5)) !important;
  }

  .hof-desc {
    color: var(--axiom-gray-500, oklch(52% 0.013 260)) !important;
  }

  /* ==============================================================
     HALL OF FAME — Premium Record Cards (Enhanced)
     ==============================================================
     Design features:
     - Notched top-left corner with rank badge
     - Left accent bar with gradient
     - Diagonal micro-texture background
     - Icon with glow ring
     - Bottom accent strip
     - Enhanced hover with lift + glow pulse
     ============================================================== */

  .hof-records-grid {
    perspective: 1200px;
  }

  .hof-record-card {
    position: relative !important;
    background:
      /* Diagonal micro-texture overlay */
      repeating-linear-gradient(
        135deg,
        transparent 0px,
        transparent 4px,
        oklch(78% 0.18 85 / 0.02) 4px,
        oklch(78% 0.18 85 / 0.02) 5px
      ),
      /* Top highlight sheen */
      linear-gradient(
        180deg,
        oklch(78% 0.18 85 / 0.06) 0%,
        transparent 80px
      ),
      /* Main dark gradient */
      linear-gradient(
        155deg,
        rgba(18, 14, 24, 0.75) 0%,
        rgba(10, 8, 16, 0.85) 60%,
        rgba(8, 6, 12, 0.9) 100%
      ) !important;
    border: 1px solid oklch(78% 0.18 85 / 0.12) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    padding: 24px 22px 20px !important;
    overflow: visible !important;
    isolation: isolate;
    transition:
      transform var(--duration-normal, 250ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)),
      border-color var(--duration-normal, 250ms) var(--ease-standard),
      box-shadow var(--duration-normal, 250ms) var(--ease-standard) !important;
  }

  /* Notched corner triangle (top-left) — pure decorative */
  .hof-record-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(
      135deg,
      oklch(78% 0.18 85 / 0.25) 0%,
      oklch(65% 0.19 75 / 0.1) 100%
    ) !important;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    border-radius: 16px 0 0 0 !important;
    z-index: 3 !important;
    box-shadow:
      0 0 30px oklch(78% 0.18 85 / 0.15) !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-text-fill-color: initial !important;
    pointer-events: none !important;
    display: block !important;
  }

  /* Left accent bar — starts below the corner triangle */
  .hof-record-card > * {
    position: relative;
    z-index: 2;
  }

  .hof-record-card::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 60px !important;
    bottom: 0 !important;
    width: 3px !important;
    background: linear-gradient(
      180deg,
      oklch(78% 0.18 85 / 0.5) 0%,
      oklch(78% 0.18 85 / 0.1) 60%,
      oklch(78% 0.18 85 / 0.02) 100%
    ) !important;
    border-radius: 0 2px 2px 0 !important;
    z-index: 4 !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    box-shadow: 0 0 14px oklch(78% 0.18 85 / 0.35) !important;
    pointer-events: none !important;
    display: block !important;
  }

  /* Bottom decorative strip */
  .hof-record-card {
    --bottom-strip-color: oklch(78% 0.18 85 / 0.15);
  }

  .hof-record-card {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -3px 0 var(--bottom-strip-color),
      0 0 0 1px rgba(255, 255, 255, 0.02) !important;
  }

  .hof-record-card:hover {
    transform: translateY(-8px) !important;
    border-color: oklch(78% 0.18 85 / 0.35) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 60px oklch(78% 0.18 85 / 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -3px 0 oklch(78% 0.18 85 / 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  }

  .hof-record-card:hover::before {
    filter: drop-shadow(0 0 10px oklch(78% 0.18 85 / 0.6)) !important;
  }

  /* Icon — centered, larger, with glow ring */
  .hof-record-icon {
    position: relative !important;
    margin: 20px auto 16px auto !important;
    font-size: 2.6rem !important;
    line-height: 1 !important;
    filter: drop-shadow(0 0 14px oklch(78% 0.18 85 / 0.5)) !important;
    z-index: 2 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid oklch(78% 0.18 85 / 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .hof-record-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      oklch(78% 0.18 85 / 0.2) 0%,
      transparent 70%
    );
    pointer-events: none;
    z-index: -1;
    animation: icon-glow-pulse 3.5s ease-in-out infinite;
  }

  @keyframes icon-glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  }

  /* Category label — all caps, centered, with accent */
  .hof-record-category {
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  /* Value — larger, more impactful */
  /* Value — larger, centered, more impact */
  .hof-record-value {
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  /* Player name — centered, larger, premium font */
  .hof-record-name {
    position: relative !important;
    padding-top: 14px !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Source Han Sans CN', 'Noto Sans CJK SC', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
  }

  .hof-record-name::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 48px !important;
    height: 1px !important;
    display: block !important;
    background: linear-gradient(
      90deg,
      transparent,
      oklch(78% 0.18 85 / 0.6),
      transparent
    ) !important;
    opacity: 1 !important;
    filter: none !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  /* ---- Level record (green theme) ---- */
  .hof-record-card.record-level {
    background:
      repeating-linear-gradient(
        135deg,
        transparent 0px,
        transparent 4px,
        oklch(72% 0.2 145 / 0.02) 4px,
        oklch(72% 0.2 145 / 0.02) 5px
      ),
      linear-gradient(
        180deg,
        oklch(72% 0.2 145 / 0.08) 0%,
        transparent 80px
      ),
      linear-gradient(
        155deg,
        rgba(12, 28, 20, 0.75) 0%,
        rgba(6, 18, 12, 0.85) 60%,
        rgba(4, 12, 8, 0.9) 100%
      ) !important;
    border-color: oklch(72% 0.2 145 / 0.18) !important;
    --bottom-strip-color: oklch(72% 0.2 145 / 0.2);
  }

  .hof-record-card.record-level::before {
    background: linear-gradient(
      135deg,
      oklch(72% 0.2 145 / 0.3) 0%,
      oklch(58% 0.18 145 / 0.12) 100%
    ) !important;
    box-shadow: 0 0 30px oklch(72% 0.2 145 / 0.15) !important;
    clip-path: polygon(0 0, 100% 0, 0 100%) !important;
    content: '' !important;
    display: block !important;
    filter: none !important;
    border: none !important;
  }

  .hof-record-card.record-level::after {
    background: linear-gradient(
      180deg,
      oklch(72% 0.2 145 / 0.55) 0%,
      oklch(72% 0.2 145 / 0.12) 60%,
      oklch(72% 0.2 145 / 0.02) 100%
    ) !important;
    box-shadow: 0 0 14px oklch(72% 0.2 145 / 0.35) !important;
    display: block !important;
  }

  .hof-record-card.record-level:hover {
    border-color: oklch(72% 0.2 145 / 0.4) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 60px oklch(72% 0.2 145 / 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -3px 0 oklch(72% 0.2 145 / 0.35) !important;
  }

  .record-level .hof-record-icon {
    border-color: oklch(72% 0.2 145 / 0.2) !important;
    background: rgba(0, 20, 10, 0.4) !important;
  }

  .record-level .hof-record-icon::after {
    background: radial-gradient(
      circle,
      oklch(72% 0.2 145 / 0.2) 0%,
      transparent 70%
    );
  }

  .record-level .hof-record-name::before {
    background: linear-gradient(
      90deg,
      oklch(72% 0.2 145 / 0.5),
      transparent
    );
  }

  /* ---- Gold record (gold theme) ---- */
  .hof-record-card.record-gold {
    background:
      repeating-linear-gradient(
        135deg,
        transparent 0px,
        transparent 4px,
        oklch(78% 0.18 85 / 0.025) 4px,
        oklch(78% 0.18 85 / 0.025) 5px
      ),
      linear-gradient(
        180deg,
        oklch(78% 0.18 85 / 0.1) 0%,
        transparent 80px
      ),
      linear-gradient(
        155deg,
        rgba(32, 22, 8, 0.78) 0%,
        rgba(20, 14, 5, 0.88) 60%,
        rgba(14, 10, 3, 0.92) 100%
      ) !important;
    border-color: oklch(78% 0.18 85 / 0.25) !important;
    --bottom-strip-color: oklch(78% 0.18 85 / 0.25);
  }

  .hof-record-card.record-gold::before {
    background: linear-gradient(
      135deg,
      oklch(83% 0.14 85 / 0.35) 0%,
      oklch(65% 0.19 75 / 0.12) 100%
    ) !important;
    box-shadow: 0 0 36px oklch(78% 0.18 85 / 0.2) !important;
    clip-path: polygon(0 0, 100% 0, 0 100%) !important;
    content: '' !important;
    display: block !important;
    filter: none !important;
    border: none !important;
  }

  .hof-record-card.record-gold::after {
    background: linear-gradient(
      180deg,
      oklch(78% 0.18 85 / 0.6) 0%,
      oklch(78% 0.18 85 / 0.15) 60%,
      oklch(78% 0.18 85 / 0.02) 100%
    ) !important;
    box-shadow: 0 0 18px oklch(78% 0.18 85 / 0.4) !important;
    display: block !important;
  }

  .hof-record-card.record-gold:hover {
    border-color: oklch(78% 0.18 85 / 0.5) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 70px oklch(78% 0.18 85 / 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -3px 0 oklch(78% 0.18 85 / 0.4) !important;
  }

  .record-gold .hof-record-icon {
    border-color: oklch(78% 0.18 85 / 0.25) !important;
    background: rgba(30, 20, 5, 0.45) !important;
  }

  .record-gold .hof-record-icon::after {
    background: radial-gradient(
      circle,
      oklch(78% 0.18 85 / 0.25) 0%,
      transparent 70%
    );
  }

  .record-gold .hof-record-name::before {
    background: linear-gradient(
      90deg,
      oklch(78% 0.18 85 / 0.6),
      transparent
    );
  }

  /* ---- Power record (purple theme) ---- */
  .hof-record-card.record-power {
    background:
      repeating-linear-gradient(
        135deg,
        transparent 0px,
        transparent 4px,
        oklch(70% 0.2 290 / 0.02) 4px,
        oklch(70% 0.2 290 / 0.02) 5px
      ),
      linear-gradient(
        180deg,
        oklch(70% 0.2 290 / 0.08) 0%,
        transparent 80px
      ),
      linear-gradient(
        155deg,
        rgba(24, 12, 36, 0.75) 0%,
        rgba(14, 6, 22, 0.85) 60%,
        rgba(10, 4, 16, 0.9) 100%
      ) !important;
    border-color: oklch(70% 0.2 290 / 0.18) !important;
    --bottom-strip-color: oklch(70% 0.2 290 / 0.2);
  }

  .hof-record-card.record-power::before {
    background: linear-gradient(
      135deg,
      oklch(70% 0.2 290 / 0.3) 0%,
      oklch(56% 0.18 290 / 0.12) 100%
    ) !important;
    box-shadow: 0 0 30px oklch(70% 0.2 290 / 0.15) !important;
    clip-path: polygon(0 0, 100% 0, 0 100%) !important;
    content: '' !important;
    display: block !important;
    filter: none !important;
    border: none !important;
  }

  .hof-record-card.record-power::after {
    background: linear-gradient(
      180deg,
      oklch(70% 0.2 290 / 0.55) 0%,
      oklch(70% 0.2 290 / 0.12) 60%,
      oklch(70% 0.2 290 / 0.02) 100%
    ) !important;
    box-shadow: 0 0 14px oklch(70% 0.2 290 / 0.35) !important;
    display: block !important;
  }

  .hof-record-card.record-power:hover {
    border-color: oklch(70% 0.2 290 / 0.4) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 60px oklch(70% 0.2 290 / 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -3px 0 oklch(70% 0.2 290 / 0.35) !important;
  }

  .record-power .hof-record-icon {
    border-color: oklch(70% 0.2 290 / 0.2) !important;
    background: rgba(20, 8, 35, 0.4) !important;
  }

  .record-power .hof-record-icon::after {
    background: radial-gradient(
      circle,
      oklch(70% 0.2 290 / 0.2) 0%,
      transparent 70%
    );
  }

  .record-power .hof-record-name::before {
    background: linear-gradient(
      90deg,
      oklch(70% 0.2 290 / 0.5),
      transparent
    );
  }

  /* ==============================================================
     STAT HERO + RACE HERO CARDS — Complete Redesign
     Token / Medallion / Gauge style
     ============================================================== */

  /* ---- Reset existing pseudo-elements ---- */
  .stat-hero-card::before,
  .stat-hero-card::after,
  .race-hero-card::before,
  .race-hero-card::after {
    all: unset !important;
    display: none !important;
    content: none !important;
  }

  /* ============================================================
     BASE CARD — Token / Medallion Shape
     ============================================================ */

  .stat-hero-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    border-radius: 20px !important;
    padding: 0 !important;
    border: 1px solid !important;
    transition:
      transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
      border-color 300ms ease,
      box-shadow 300ms ease !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 160px !important;
  }

  .stat-hero-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
  }

  /* Ornate top band — the "medallion header" */
  .stat-hero-card::before {
    all: unset !important;
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    background:
      linear-gradient(
        180deg,
        oklch(78% 0.18 85 / 0.25) 0%,
        oklch(78% 0.18 85 / 0.08) 100%
      ) !important;
    border-bottom: 1px solid oklch(78% 0.18 85 / 0.15) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  /* Bottom decorative edge */
  .stat-hero-card::after {
    all: unset !important;
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(
      90deg,
      transparent 0%,
      oklch(78% 0.18 85 / 0.4) 20%,
      oklch(78% 0.18 85 / 0.6) 50%,
      oklch(78% 0.18 85 / 0.4) 80%,
      transparent 100%
    ) !important;
    z-index: 3 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 0 8px oklch(78% 0.18 85 / 0.5)) !important;
  }

  /* Card body area — dark glass */
  .stat-hero-card {
    background:
      /* Subtle radial glow from center-top */
      radial-gradient(
        ellipse 80% 50% at 50% 0%,
        oklch(78% 0.18 85 / 0.06) 0%,
        transparent 60%
      ),
      /* Diagonal weave texture */
      repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 5px,
        oklch(78% 0.18 85 / 0.015) 5px,
        oklch(78% 0.18 85 / 0.015) 6px
      ),
      /* Main dark base */
      linear-gradient(
        160deg,
        rgba(16, 13, 24, 0.85) 0%,
        rgba(10, 8, 16, 0.92) 100%
      ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  /* Icon — in the top band, centered */
  .stat-hero-icon {
    position: absolute !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 5 !important;
    filter: drop-shadow(0 2px 8px oklch(78% 0.18 85 / 0.4)) !important;
    opacity: 0.95 !important;
  }

  .stat-hero-icon::after {
    display: none !important;
  }

  /* Value — big number, centered, below the band */
  .stat-hero-value {
    position: relative !important;
    margin: 64px auto 4px !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    font-size: 3.2rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    z-index: 2 !important;
    text-shadow:
      0 4px 30px oklch(78% 0.18 85 / 0.4),
      0 0 60px oklch(78% 0.18 85 / 0.2) !important;
  }

  /* Label — below value, with divider above */
  .stat-hero-label {
    position: relative !important;
    margin: 0 auto 24px !important;
    padding: 10px 20px 0 !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.35em !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
  }

  .stat-hero-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      oklch(78% 0.18 85 / 0.5),
      transparent
    );
  }

  /* ============================================================
     CHINA CARD — Azure Dragon Token
     ============================================================ */

  .stat-hero-card.china-card {
    border-color: oklch(72% 0.2 215 / 0.3) !important;
    background:
      radial-gradient(
        ellipse 80% 50% at 50% 0%,
        oklch(72% 0.2 215 / 0.1) 0%,
        transparent 60%
      ),
      repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 5px,
        oklch(72% 0.2 215 / 0.02) 5px,
        oklch(72% 0.2 215 / 0.02) 6px
      ),
      linear-gradient(
        160deg,
        rgba(8, 18, 40, 0.85) 0%,
        rgba(4, 10, 24, 0.92) 100%
      ) !important;
  }

  .stat-hero-card.china-card::before {
    background:
      linear-gradient(
        180deg,
        oklch(72% 0.2 215 / 0.3) 0%,
        oklch(72% 0.2 215 / 0.08) 100%
      ) !important;
    border-bottom-color: oklch(72% 0.2 215 / 0.2) !important;
  }

  .stat-hero-card.china-card::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      oklch(72% 0.2 215 / 0.3) 20%,
      oklch(72% 0.2 215 / 0.55) 50%,
      oklch(72% 0.2 215 / 0.3) 80%,
      transparent 100%
    ) !important;
    filter: drop-shadow(0 0 10px oklch(72% 0.2 215 / 0.5)) !important;
  }

  .stat-hero-card.china-card:hover {
    border-color: oklch(72% 0.2 215 / 0.5) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 80px oklch(72% 0.2 215 / 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  .china-card .stat-hero-icon {
    filter: drop-shadow(0 2px 10px oklch(72% 0.2 215 / 0.6)) !important;
  }

  .china-card .stat-hero-value {
    background: linear-gradient(
      135deg,
      oklch(85% 0.15 215) 0%,
      oklch(70% 0.2 220) 50%,
      oklch(58% 0.2 230) 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
  }

  .china-card .stat-hero-label {
    color: oklch(75% 0.15 215) !important;
    opacity: 0.85 !important;
  }

  .china-card .stat-hero-label::before {
    background: linear-gradient(
      90deg,
      transparent,
      oklch(72% 0.2 215 / 0.5),
      transparent
    ) !important;
  }

  /* ============================================================
     EUROPE CARD — Golden Laurel Medallion
     ============================================================ */

  .stat-hero-card.europe-card {
    border-color: oklch(78% 0.18 85 / 0.35) !important;
    background:
      radial-gradient(
        ellipse 80% 50% at 50% 0%,
        oklch(78% 0.18 85 / 0.12) 0%,
        transparent 60%
      ),
      repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 5px,
        oklch(78% 0.18 85 / 0.025) 5px,
        oklch(78% 0.18 85 / 0.025) 6px
      ),
      linear-gradient(
        160deg,
        rgba(28, 20, 8, 0.85) 0%,
        rgba(16, 12, 4, 0.92) 100%
      ) !important;
  }

  .stat-hero-card.europe-card::before {
    background:
      linear-gradient(
        180deg,
        oklch(83% 0.14 85 / 0.35) 0%,
        oklch(78% 0.18 85 / 0.1) 100%
      ) !important;
    border-bottom-color: oklch(78% 0.18 85 / 0.25) !important;
  }

  .stat-hero-card.europe-card::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      oklch(78% 0.18 85 / 0.4) 20%,
      oklch(83% 0.14 85 / 0.65) 50%,
      oklch(78% 0.18 85 / 0.4) 80%,
      transparent 100%
    ) !important;
    filter: drop-shadow(0 0 12px oklch(78% 0.18 85 / 0.6)) !important;
  }

  .stat-hero-card.europe-card:hover {
    border-color: oklch(78% 0.18 85 / 0.55) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 80px oklch(78% 0.18 85 / 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .europe-card .stat-hero-icon {
    filter: drop-shadow(0 2px 10px oklch(78% 0.18 85 / 0.7)) !important;
  }

  .europe-card .stat-hero-value {
    background: linear-gradient(
      135deg,
      oklch(92% 0.08 85) 0%,
      oklch(82% 0.14 85) 30%,
      oklch(72% 0.18 80) 70%,
      oklch(65% 0.19 75) 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
  }

  .europe-card .stat-hero-label {
    color: oklch(80% 0.14 85) !important;
    opacity: 0.9 !important;
  }

  .europe-card .stat-hero-label::before {
    background: linear-gradient(
      90deg,
      transparent,
      oklch(78% 0.18 85 / 0.6),
      transparent
    ) !important;
  }

  /* ============================================================
     RACE HERO CARD — Dual Crystal Gauge
     ============================================================ */

  .race-hero-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    border-radius: 20px !important;
    padding: 20px 24px !important;
    border: 1px solid oklch(78% 0.18 85 / 0.25) !important;
    background:
      radial-gradient(
        ellipse 60% 50% at 20% 0%,
        oklch(72% 0.2 215 / 0.08) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse 60% 50% at 80% 0%,
        oklch(78% 0.18 85 / 0.08) 0%,
        transparent 60%
      ),
      repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 5px,
        oklch(78% 0.18 85 / 0.015) 5px,
        oklch(78% 0.18 85 / 0.015) 6px
      ),
      linear-gradient(
        160deg,
        rgba(18, 15, 32, 0.85) 0%,
        rgba(10, 8, 20, 0.92) 100%
      ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition:
      transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
      border-color 300ms ease,
      box-shadow 300ms ease !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .race-hero-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    border-color: oklch(78% 0.18 85 / 0.45) !important;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 60px oklch(78% 0.18 85 / 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  /* Top accent bar for race card */
  .race-hero-card::before {
    all: unset !important;
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(
      90deg,
      oklch(72% 0.2 215 / 0.6) 0%,
      oklch(78% 0.18 85 / 0.6) 50%,
      oklch(72% 0.2 215 / 0.6) 100%
    ) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 0 8px oklch(78% 0.18 85 / 0.4)) !important;
  }

  .race-hero-card::after {
    all: unset !important;
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(
      90deg,
      oklch(72% 0.2 215 / 0.4) 0%,
      oklch(78% 0.18 85 / 0.5) 50%,
      oklch(72% 0.2 215 / 0.4) 100%
    ) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 0 8px oklch(78% 0.18 85 / 0.35)) !important;
  }

  .race-hero-title {
    position: relative !important;
    z-index: 2 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
    color: oklch(78% 0.18 85 / 0.8) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .race-hero-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: oklch(78% 0.18 85);
    box-shadow: 0 0 8px oklch(78% 0.18 85 / 0.6);
  }

  .race-hero-body {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex: 1 !important;
  }

  .race-hero-body .race-hero-doughnut {
    position: relative !important;
    flex-shrink: 0 !important;
    width: 90px !important;
    height: 90px !important;
    filter: drop-shadow(0 4px 20px oklch(78% 0.18 85 / 0.3)) !important;
    z-index: 2 !important;
    float: none !important;
    display: block !important;
  }

  .race-hero-doughnut canvas {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .race-hero-doughnut .race-hero-center {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  .rhc-num {
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    background: linear-gradient(
      135deg,
      oklch(88% 0.1 85) 0%,
      oklch(75% 0.18 80) 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    line-height: 1 !important;
    text-shadow: none !important;
  }

  .rhc-lbl {
    font-size: 0.6rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    opacity: 0.6 !important;
    margin-top: 2px !important;
  }

  .race-hero-legend {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .race-legend-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .race-legend-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .race-legend-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px currentColor !important;
  }

  .race-legend-name {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
  }

  .race-legend-count {
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  .race-legend-pct {
    font-size: 0.75rem !important;
    opacity: 0.6 !important;
    margin-left: 4px !important;
  }

  .hof-record-value {
    font-family: var(--font-display, 'Cinzel Decorative', serif) !important;
    background: linear-gradient(
      135deg,
      var(--axiom-gold-100, oklch(88% 0.10 85)) 0%,
      var(--axiom-gold-300, oklch(78% 0.18 85)) 50%,
      var(--axiom-gold-500, oklch(65% 0.19 75)) 100%
    ) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 12px oklch(78% 0.18 85 / 0.2)) !important;
  }

  /* ==============================================================
     LIQUID METAL GOLD PROGRESS BARS
     ============================================================== */

  .bar-container {
    position: relative;
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  .bar-fill {
    position: relative;
    height: 100%;
    border-radius: var(--radius-full, 9999px);
    background: linear-gradient(
      90deg,
      var(--axiom-gold-600, oklch(55% 0.17 70)) 0%,
      var(--axiom-gold-400, oklch(72% 0.20 80)) 40%,
      var(--axiom-gold-200, oklch(83% 0.14 85)) 70%,
      var(--axiom-gold-400, oklch(72% 0.20 80)) 100%
    ) !important;
    background-size: 200% 100%;
    box-shadow:
      0 0 10px oklch(78% 0.18 85 / 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition:
      width var(--duration-slower, 600ms) var(--ease-emphasized, cubic-bezier(0.2, 0.8, 0.2, 1));
    animation: liquid-metal-shimmer 3s ease-in-out infinite;
  }

  /* Liquid metal highlight sweep */
  .bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 45%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0.4) 55%,
      transparent 100%
    );
    background-size: 200% 100%;
    animation: liquid-sweep 2.5s ease-in-out infinite;
    mix-blend-mode: overlay;
    border-radius: inherit;
  }

  /* Top reflection line */
  .bar-fill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 30%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    border-radius: var(--radius-full, 9999px);
    pointer-events: none;
  }

  @keyframes liquid-metal-shimmer {
    0%, 100% {
      background-position: 0% 50%;
      filter: brightness(1);
    }
    50% {
      background-position: 100% 50%;
      filter: brightness(1.1);
    }
  }

  @keyframes liquid-sweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }

  .bar-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--axiom-gray-100, oklch(92% 0.008 260));
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
  }

  /* ---- Race info bar (ric-bar) ---- */
  .ric-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
  }

  .ric-bar-fill {
    position: relative;
    height: 100%;
    border-radius: var(--radius-full, 9999px);
    background: linear-gradient(
      90deg,
      var(--axiom-gold-500, oklch(65% 0.19 75)) 0%,
      var(--axiom-gold-300, oklch(78% 0.18 85)) 100%
    ) !important;
    box-shadow: 0 0 8px oklch(78% 0.18 85 / 0.4);
    transition: width var(--duration-slower, 600ms) var(--ease-emphasized, cubic-bezier(0.2, 0.8, 0.2, 1));
  }

  .ric-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 100%
    );
    border-radius: var(--radius-full, 9999px) var(--radius-full, 9999px) 0 0;
  }

  /* ==============================================================
     RANKING TABLE — Dark Gold Refinement with Texture
     ============================================================== */

  .ranking-table-wrap {
    position: relative !important;
    background:
      /* Top edge highlight — subtle "lid" effect */
      linear-gradient(
        180deg,
        oklch(78% 0.18 85 / 0.1) 0%,
        transparent 60px
      ),
      /* Warm dark base — lifted from pure black for readability */
      linear-gradient(
        160deg,
        rgba(24, 18, 28, 0.9) 0%,
        rgba(16, 12, 20, 0.94) 50%,
        rgba(12, 10, 16, 0.96) 100%
      ) !important;
    border: 1px solid oklch(78% 0.18 85 / 0.16) !important;
    border-radius: var(--radius-xl, 20px) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    overflow: hidden;
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
    isolation: isolate;
  }

  /* Micro texture overlay — diagonal weave pattern + soft glow */
  .ranking-table-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
      /* Diagonal micro-lines texture — denser */
      repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 2px,
        oklch(78% 0.18 85 / 0.04) 2px,
        oklch(78% 0.18 85 / 0.04) 3px
      ),
      /* Subtle gold glow from top-left — stronger */
      radial-gradient(
        ellipse 70% 50% at 15% 0%,
        oklch(78% 0.18 85 / 0.1) 0%,
        transparent 70%
      );
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
    opacity: 0.8;
  }

  /* Bottom inner vignette for depth — deeper */
  .ranking-table-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    border-radius: 0 0 var(--radius-xl, 20px) var(--radius-xl, 20px);
  }

  /* Ensure table content sits above texture */
  .ranking-table-wrap > * {
    position: relative;
    z-index: 1;
  }

  .ranking-table thead {
    background: rgba(255, 255, 255, 0.02) !important;
  }

  .ranking-table th {
    background: transparent !important;
    color: var(--axiom-gray-400, oklch(62% 0.012 260)) !important;
    border-bottom: 1px solid oklch(78% 0.18 85 / 0.1) !important;
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
  }

  .ranking-table td {
    color: var(--axiom-gray-200, oklch(84% 0.010 260)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-size: 0.9rem !important;
  }

  .ranking-table tbody tr:hover {
    background: oklch(78% 0.18 85 / 0.04) !important;
  }

  /* Rank number badges */
  .rank-num {
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
  }

  .rank-1 {
    background: linear-gradient(
      135deg,
      var(--axiom-gold-200, oklch(83% 0.14 85)),
      var(--axiom-gold-500, oklch(65% 0.19 75))
    ) !important;
    color: var(--axiom-black, #050505) !important;
    box-shadow: 0 0 12px oklch(78% 0.18 85 / 0.4);
  }

  .rank-2 {
    background: linear-gradient(
      135deg,
      var(--axiom-gray-200, oklch(84% 0.010 260)),
      var(--axiom-gray-500, oklch(52% 0.013 260))
    ) !important;
    color: var(--axiom-black, #050505) !important;
  }

  .rank-3 {
    background: linear-gradient(
      135deg,
      oklch(68% 0.12 55),
      oklch(48% 0.10 50)
    ) !important;
    color: var(--axiom-black, #050505) !important;
  }

  .rank-default {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--axiom-gray-300, oklch(74% 0.012 260)) !important;
  }

  /* 移除排名前的 # 号装饰 */
  .rank-1::before,
  .rank-2::before,
  .rank-3::before {
    content: none !important;
    display: none !important;
  }

  /* ==============================================================
     渐进展开 — 默认只显示前 33 名，点击查看更多 → 66 → 全部
     nth-child 注意：父元素只有 ranking-row，直接在 tbody 里计数。
     关键：宽松规则先声明，严格规则后声明（CSS 层叠后声明赢）
     ============================================================== */

  /* 默认：隐藏第 34 行及以后 */
  .ranking-table tbody tr.ranking-row:nth-child(n+34) {
    display: none;
  }

  /* 阶段 1（show=66）：先让 34+ 全显示，再把 67+ 隐藏 —— 后声明的 n+67 赢 */
  .ranking-content[data-show="66"] .ranking-table tbody tr.ranking-row:nth-child(n+34) {
    display: table-row;
  }
  .ranking-content[data-show="66"] .ranking-table tbody tr.ranking-row:nth-child(n+67) {
    display: none;
  }

  /* 阶段 2（show=all）：全部显示 */
  .ranking-content[data-show="all"] .ranking-table tbody tr.ranking-row {
    display: table-row;
  }

  /* 查看更多 —— 底部一行小字链接 */
  .ranking-expand-btn {
    display: block;
    width: 100%;
    margin: 12px 0 14px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: oklch(70% 0.08 85 / 0.6);
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-size: 0.8rem !important;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 180ms ease;
    box-shadow: none;
    line-height: 1.5;
  }
  .ranking-expand-btn .expand-text {
    font-size: 0.8rem !important;
  }
  .ranking-expand-btn::before {
    display: none;
  }
  .ranking-expand-btn:hover {
    color: oklch(83% 0.14 85);
    background: transparent;
  }
  .ranking-expand-btn:active {
    transform: none;
  }
  .ranking-expand-btn .expand-icon {
    font-size: 0.66rem !important;
    margin-left: 2px;
    transition: transform 300ms ease;
  }
  .ranking-expand-btn[data-action="collapse"] .expand-icon {
    transform: rotate(180deg);
  }

  /* table-wrap 底部留白 */
  .ranking-table-wrap {
    padding-bottom: 6px;
  }

  /* ==============================================================
     RACE DISTRIBUTION CARD
     ============================================================== */

  .race-info-card {
    background: rgba(10, 10, 15, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: var(--space-4, 16px) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
      border-color var(--duration-fast, 150ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)),
      box-shadow var(--duration-fast, 150ms) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
  }

  .race-info-card:hover {
    border-color: oklch(78% 0.18 85 / 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .ric-name {
    font-family: var(--font-ui, 'DM Sans', sans-serif) !important;
    font-weight: 600 !important;
    color: var(--axiom-gray-100, oklch(92% 0.008 260)) !important;
  }

  .ric-count {
    font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
    font-size: 0.85rem !important;
    color: var(--axiom-gray-300, oklch(74% 0.012 260)) !important;
  }

  .ric-pct {
    font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
    font-size: 0.75rem !important;
    color: var(--axiom-gold-300, oklch(78% 0.18 85)) !important;
    font-weight: 600;
  }

  /* ==============================================================
     RESPONSIVE — Mobile
     ============================================================== */

  @media (max-width: 768px) {
    .ranking-tabs {
      overflow-x: auto;
      flex-wrap: nowrap;
      -webkit-overflow-scrolling: touch;
      padding: 4px !important;
    }

    .ranking-tab {
      flex: 0 0 auto;
      padding: 10px 16px !important;
      font-size: 0.8rem !important;
      min-width: 44px;
      min-height: 44px;
    }

    .hof-records-grid {
      grid-template-columns: 1fr !important;
      gap: var(--space-4, 16px) !important;
    }

    /* Disable 3D flip on mobile for performance and touch UX */
    .hof-records-grid .hof-record-card:nth-child(-n+3):hover {
      transform: translateY(-4px) !important;
    }

    .hof-record-card {
      min-height: auto !important;
    }

    .stats-hero {
      grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-hero-card {
      padding: var(--space-4, 16px) !important;
    }

    .bar-container {
      height: 20px;
    }

    .bar-value {
      font-size: 0.7rem;
    }

    .ranking-table th,
    .ranking-table td {
      padding: 10px 12px !important;
      font-size: 0.8rem !important;
    }
  }

  @media (max-width: 480px) {
    .stats-hero {
      grid-template-columns: 1fr !important;
    }

    .ranking-header h1 {
      font-size: 1.75rem !important;
      letter-spacing: 0.1em !important;
    }
  }

  /* ==============================================================
     4K PERFORMANCE DEGRADATION
     ============================================================== */

  @media (min-width: 2560px) {
    .hof-record-card::after,
    .stat-hero-card::after {
      filter: none !important;
    }

    .bar-fill {
      box-shadow: none !important;
      background: linear-gradient(
        90deg,
        var(--axiom-gold-600, oklch(55% 0.17 70)) 0%,
        var(--axiom-gold-300, oklch(78% 0.18 85)) 50%,
        var(--axiom-gold-600, oklch(55% 0.17 70)) 100%
      ) !important;
    }
  }

  /* ==============================================================
     REDUCED MOTION
     ============================================================== */

  @media (prefers-reduced-motion: reduce) {
    .bar-fill,
    .bar-fill::before {
      animation: none !important;
    }

    .hof-record-card {
      transition: none !important;
    }
  }

  /* ==============================================================
     JOB DISTRIBUTION — 镖师 / 义士 主题色
     ============================================================== */

  #jobDist .race-info-card.china {
    border-color: oklch(78% 0.18 85 / 0.25) !important;
  }
  #jobDist .race-info-card.china:hover {
    border-color: oklch(78% 0.18 85 / 0.5) !important;
    box-shadow: 0 8px 32px oklch(78% 0.18 85 / 0.15) !important;
  }
  #jobDist .race-info-card.china .ric-name {
    color: oklch(82% 0.16 84) !important;
  }
  #jobDist .race-info-card.china .ric-bar-fill {
    background: linear-gradient(
      90deg,
      oklch(60% 0.18 72) 0%,
      oklch(78% 0.18 85) 100%
    ) !important;
    box-shadow: 0 0 10px oklch(78% 0.18 85 / 0.5) !important;
  }
  #jobDist .race-info-card.china .ric-pct {
    color: oklch(78% 0.18 85) !important;
  }

  #jobDist .race-info-card.europe {
    border-color: oklch(65% 0.22 25 / 0.25) !important;
  }
  #jobDist .race-info-card.europe:hover {
    border-color: oklch(65% 0.22 25 / 0.5) !important;
    box-shadow: 0 8px 32px oklch(65% 0.22 25 / 0.15) !important;
  }
  #jobDist .race-info-card.europe .ric-name {
    color: oklch(72% 0.2 28) !important;
  }
  #jobDist .race-info-card.europe .ric-bar-fill {
    background: linear-gradient(
      90deg,
      oklch(50% 0.22 22) 0%,
      oklch(65% 0.22 25) 100%
    ) !important;
    box-shadow: 0 0 10px oklch(65% 0.22 25 / 0.5) !important;
  }
  #jobDist .race-info-card.europe .ric-pct {
    color: oklch(68% 0.21 26) !important;
  }

  /* ==============================================================
     RANKING TAB THEMES — 金币/金铢/银铢 数值条配色
     ============================================================== */

  /* 铜色（金币排行） */
  .ranking-theme-copper .bar-fill {
    background: linear-gradient(
      90deg,
      oklch(40% 0.12 45) 0%,
      oklch(58% 0.15 50) 40%,
      oklch(72% 0.13 55) 70%,
      oklch(58% 0.15 50) 100%
    ) !important;
    box-shadow:
      0 0 10px oklch(62% 0.14 52 / 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  }

  /* 金色（金铢排行）— 保持现有效果 */
  .ranking-theme-gold .bar-fill {
    background: linear-gradient(
      90deg,
      oklch(55% 0.17 70) 0%,
      oklch(72% 0.20 80) 40%,
      oklch(83% 0.14 85) 70%,
      oklch(72% 0.20 80) 100%
    ) !important;
    box-shadow:
      0 0 10px oklch(78% 0.18 85 / 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  }

  /* 银色（银铢排行） */
  .ranking-theme-silver .bar-fill {
    background: linear-gradient(
      90deg,
      oklch(45% 0.01 250) 0%,
      oklch(68% 0.02 240) 40%,
      oklch(88% 0.015 230) 70%,
      oklch(68% 0.02 240) 100%
    ) !important;
    box-shadow:
      0 0 10px oklch(75% 0.02 235 / 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  }

} /* @layer axiom-ranking END */

/* ============================================================
   v3.0.2 豪华版：种族分布英雄卡 — 帝国鎏金 · 四角镀金 · 辉光图例
   ============================================================ */

/* ---- 卡片本体：镀金描边 + 辉光 + 星点纹理 ---- */
.race-hero-card {
    border-color: oklch(78% 0.18 85 / 0.45) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px oklch(78% 0.18 85 / 0.12),
        0 0 46px oklch(78% 0.18 85 / 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    background:
        radial-gradient(circle at 50% -20%, oklch(78% 0.18 85 / 0.18) 0%, transparent 55%),
        radial-gradient(circle at 12% 110%, oklch(72% 0.2 215 / 0.10) 0%, transparent 45%),
        radial-gradient(circle at 88% 110%, oklch(78% 0.18 85 / 0.10) 0%, transparent 45%),
        linear-gradient(160deg, rgba(20, 16, 34, 0.9) 0%, rgba(8, 7, 16, 0.95) 100%) !important;
}


/* ---- 四角镀金装饰 ---- */
.race-hero-corner {
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    z-index: 4 !important;
    pointer-events: none !important;
    opacity: 0.9 !important;
}
.race-hero-corner.tl {
    top: 8px !important; left: 8px !important;
    border-top: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-left: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-top-left-radius: 8px !important;
    filter: drop-shadow(0 0 6px oklch(78% 0.18 85 / 0.5)) !important;
}
.race-hero-corner.tr {
    top: 8px !important; right: 8px !important;
    border-top: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-right: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-top-right-radius: 8px !important;
    filter: drop-shadow(0 0 6px oklch(78% 0.18 85 / 0.5)) !important;
}
.race-hero-corner.bl {
    bottom: 8px !important; left: 8px !important;
    border-bottom: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-left: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-bottom-left-radius: 8px !important;
    filter: drop-shadow(0 0 6px oklch(78% 0.18 85 / 0.5)) !important;
}
.race-hero-corner.br {
    bottom: 8px !important; right: 8px !important;
    border-bottom: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-right: 2px solid oklch(78% 0.18 85 / 0.8) !important;
    border-bottom-right-radius: 8px !important;
    filter: drop-shadow(0 0 6px oklch(78% 0.18 85 / 0.5)) !important;
}

/* ---- 标题：皇冠 + 鎏金文字 ---- */
.race-hero-title {
    font-size: 0.8rem !important;
    letter-spacing: 0.34em !important;
    background: linear-gradient(135deg,
        oklch(92% 0.08 85) 0%,
        oklch(78% 0.18 85) 55%,
        oklch(88% 0.12 85) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 0 10px oklch(78% 0.18 85 / 0.35)) !important;
}

.race-hero-title::before {
    content: '◆' !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0.5rem !important;
    color: oklch(78% 0.18 85) !important;
    -webkit-text-fill-color: currentColor !important;
    animation: rh-title-pulse 2.4s ease-in-out infinite !important;
}

.rh-title-crown {
    font-size: 0.95rem !important;
    filter: drop-shadow(0 0 8px oklch(78% 0.18 85 / 0.7)) !important;
    -webkit-text-fill-color: initial !important;
}

@keyframes rh-title-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* ---- 中心数字：辉光脉冲 ---- */
.rhc-num {
    animation: rhc-glow 2.8s ease-in-out infinite !important;
}
@keyframes rhc-glow {
    0%, 100% { filter: drop-shadow(0 0 6px oklch(78% 0.18 85 / 0.25)); }
    50% { filter: drop-shadow(0 0 16px oklch(78% 0.18 85 / 0.55)); }
}

/* ---- 图例：进度条 + 对齐 ---- */
.race-hero-legend {
    gap: 14px !important;
}

.race-legend-item {
    flex-wrap: wrap !important;
    row-gap: 6px !important;
}

.race-legend-dot {
    width: 12px !important;
    height: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.race-legend-dot.china {
    background: radial-gradient(circle at 35% 30%, #7ec8ff, #2f7fd1) !important;
    box-shadow: 0 0 10px rgba(93, 173, 226, 0.7) !important;
}
.race-legend-dot.europe {
    background: radial-gradient(circle at 35% 30%, #ffe9a8, #d4952f) !important;
    box-shadow: 0 0 10px rgba(245, 179, 66, 0.7) !important;
}

.race-legend-name {
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

.race-legend-count {
    color: #fff !important;
}

.race-legend-pct {
    background: rgba(245, 179, 66, 0.12) !important;
    border: 1px solid rgba(245, 179, 66, 0.25) !important;
    border-radius: 20px !important;
    padding: 1px 8px !important;
    font-size: 0.68rem !important;
    opacity: 1 !important;
    margin-left: 6px !important;
    color: oklch(82% 0.14 85) !important;
}

/* 图例进度条 */
.race-legend-bar {
    flex-basis: 100% !important;
    height: 4px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    overflow: hidden !important;
    margin-left: 22px !important;
}
.race-legend-bar i {
    display: block !important;
    height: 100% !important;
    border-radius: 4px !important;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.race-legend-bar i.bar-china {
    background: linear-gradient(90deg, #2f7fd1, #7ec8ff) !important;
    box-shadow: 0 0 8px rgba(93, 173, 226, 0.6) !important;
}
.race-legend-bar i.bar-europe {
    background: linear-gradient(90deg, #d4952f, #ffe9a8) !important;
    box-shadow: 0 0 8px rgba(245, 179, 66, 0.6) !important;
}

/* ============ [v4.0.0] 原 ranking.php 内联 <style> 内容 ============ */
.ranking-page {
    padding: 40px 0 60px;
    min-height: calc(100vh - var(--nav-height) - 250px);
}
.ranking-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.ranking-header {
    margin-bottom: 32px;
    text-align: center;
}
.ranking-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F5B342 0%, #FFD700 50%, #F5B342 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    margin: 0;
    letter-spacing: 2px;
}
.ranking-header h1::before,
.ranking-header h1::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #F5B342;
    -webkit-text-fill-color: #F5B342;
    opacity: 0.6;
}
.ranking-header h1::before { left: -40px; }
.ranking-header h1::after { right: -40px; }
.ranking-header .ranking-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ===== 顶部统计英雄区 ===== */
.stats-hero {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 16px;
    margin-bottom: 32px;
}
.stat-hero-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26,26,46,0.8), rgba(15,15,30,0.9));
    border: 1px solid rgba(245,179,66,0.15);
    border-radius: 16px;
    padding: 24px 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,179,66,0.5), transparent);
}
.stat-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245,179,66,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.stat-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,179,66,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(245,179,66,0.08);
}
.stat-hero-card.total-card {
    background: linear-gradient(145deg, rgba(40,30,15,0.9), rgba(20,15,8,0.95));
    border-color: rgba(245,179,66,0.3);
}
.stat-hero-card.total-card::after {
    background: radial-gradient(circle, rgba(245,179,66,0.15) 0%, transparent 70%);
}
.stat-hero-card.china-card {
    background: linear-gradient(145deg, rgba(15,25,45,0.9), rgba(8,15,30,0.95));
    border-color: rgba(93,173,226,0.2);
}
.stat-hero-card.china-card::after {
    background: radial-gradient(circle, rgba(93,173,226,0.12) 0%, transparent 70%);
}
.stat-hero-card.china-card:hover {
    border-color: rgba(93,173,226,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(93,173,226,0.08);
}
.stat-hero-card.europe-card {
    background: linear-gradient(145deg, rgba(45,25,10,0.9), rgba(30,15,5,0.95));
    border-color: rgba(245,179,66,0.2);
}
.stat-hero-card.europe-card::after {
    background: radial-gradient(circle, rgba(245,179,66,0.12) 0%, transparent 70%);
}
.stat-hero-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
    background: rgba(245,179,66,0.1);
    border: 1px solid rgba(245,179,66,0.2);
}
.china-card .stat-hero-icon {
    background: rgba(93,173,226,0.1);
    border-color: rgba(93,173,226,0.25);
}
.europe-card .stat-hero-icon {
    background: rgba(245,179,66,0.1);
    border-color: rgba(245,179,66,0.25);
}
.stat-hero-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFD700, #F5B342, #D4A847);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
.china-card .stat-hero-value {
    background: linear-gradient(135deg, #87CEEB, #5dade2, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.europe-card .stat-hero-value {
    background: linear-gradient(135deg, #FFE082, #F5B342, #D4A847);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-hero-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.china-card .stat-hero-label { color: rgba(93,173,226,0.7); }
.europe-card .stat-hero-label { color: rgba(245,179,66,0.7); }

/* 种族分布英雄卡片 */
.race-hero-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26,26,46,0.8), rgba(15,15,30,0.9));
    border: 1px solid rgba(245,179,66,0.15);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.race-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,179,66,0.4), transparent);
}
.race-hero-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.race-hero-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #F5B342;
    border-radius: 50%;
    box-shadow: 0 0 8px #F5B342;
}
.race-hero-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}
.race-hero-doughnut {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}
.race-hero-doughnut canvas {
    width: 100% !important;
    height: 100% !important;
}
.race-hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.race-hero-center .rhc-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.race-hero-center .rhc-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.race-hero-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.race-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.race-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.race-legend-dot.china { background: #5dade2; box-shadow: 0 0 6px #5dade2; }
.race-legend-dot.europe { background: #F5B342; box-shadow: 0 0 6px #F5B342; }
.race-legend-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}
.race-legend-name {
    color: var(--text-secondary);
    font-weight: 500;
}
.race-legend-count {
    color: #fff;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.race-legend-pct {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 6px;
}

@media (max-width: 900px) {
    .stats-hero {
        grid-template-columns: 1fr 1fr;
    }
    .race-hero-card {
        grid-column: span 2;
    }
    .stat-hero-value { font-size: 2rem; }
}
@media (max-width: 480px) {
    .stats-hero {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-hero-card { padding: 16px 12px; }
    .stat-hero-value { font-size: 1.6rem; }
    .race-hero-card { grid-column: span 2; padding: 16px; }
    .ranking-header h1 { font-size: 1.8rem; }
    .ranking-header h1::before { left: -28px; }
    .ranking-header h1::after { right: -28px; }
}
.ranking-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: linear-gradient(180deg, rgba(18, 14, 28, 0.7) 0%, rgba(10, 8, 18, 0.85) 100%);
    border-radius: 14px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    flex-wrap: nowrap;
    position: relative;
}
button.ranking-tab {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.5px;
    z-index: 1;
}
button.ranking-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}
button.ranking-tab.active {
    /* 金色滑动药丸效果由 ranking-patch.css 的 ::after 伪元素驱动
       JS 通过 --pill-left 和 --pill-width CSS 变量控制位置 */
    color: #1a1208;
    font-weight: 600;
}
button.ranking-tab.active::after {
    display: none;
}
.ranking-content {
    display: none;
}
.ranking-content.active {
    display: block;
}

/* ---- 数据条样式 ---- */
.bar-container {
    position: relative;
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
}
.bar-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    border-radius: 10px;
    min-width: 2px;
    box-shadow: 0 0 10px rgba(245, 179, 66, 0.2);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-value {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.ranking-table-wrap {
    background: var(--bg-surface, #1a1a2e);
    border: 1px solid var(--border-color, #2a2a3e);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.ranking-table thead {
    background: rgba(245, 179, 66, 0.05);
}
.ranking-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #F5B342;
    border-bottom: 2px solid rgba(245, 179, 66, 0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.ranking-table td {
    padding: 12px 16px;
    color: var(--text-primary, #e0e0e0);
    border-bottom: 1px solid var(--border-color, #2a2a3e);
}
.ranking-table tbody tr {
    transition: background 0.15s ease;
}
.ranking-table tbody tr:hover {
    background: rgba(245, 179, 66, 0.03);
}
.ranking-table tbody tr:last-child td {
    border-bottom: none;
}
.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
}
.rank-1 { background: linear-gradient(135deg, #F5B342, #d4942f); color: #1a1a1a; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #1a1a1a; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b87333); color: #1a1a1a; }
.rank-default { background: rgba(255,255,255,0.08); color: var(--text-secondary, #a0a0b0); }
.guild-name {
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
}
.text-muted { color: var(--text-muted, #6a6a7a); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* ===== 神秘人效果 ===== */
@keyframes mysterious-glow {
    0%, 100% {
        text-shadow: 0 0 3px #9b59b6, 0 0 8px #8e44ad, 0 0 14px #6c3483;
        color: #d2b4de;
    }
    33% {
        text-shadow: 0 0 4px #c0392b, 0 0 10px #a93226, 0 0 18px #7b241c;
        color: #f1948a;
    }
    66% {
        text-shadow: 0 0 4px #9b59b6, 0 0 12px #8e44ad, 0 0 20px #6c3483;
        color: #c39bd3;
    }
}
.mysterious-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    animation: mysterious-glow 3s ease-in-out infinite;
}
.mysterious-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===== 前三名颜色 ===== */
.top3-name {
    font-weight: 700;
    display: inline-block;
}
.rank-gold {
    color: #F5B342;
}
.rank-silver {
    color: #c0c0c0;
}
.rank-bronze {
    color: #cd7f32;
}

@media (max-width: 768px) {
    .ranking-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(245,179,66,0.3) transparent;
        gap: 2px;
        padding-bottom: 4px;
    }
    .ranking-tabs::-webkit-scrollbar {
        height: 4px;
    }
    .ranking-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    .ranking-tabs::-webkit-scrollbar-thumb {
        background: rgba(245,179,66,0.3);
        border-radius: 2px;
    }
    .ranking-tab {
        flex: 0 0 auto;
        min-width: 100px;
    }
    .ranking-table-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(245,179,66,0.3) transparent;
    }
    .ranking-table-wrap::-webkit-scrollbar {
        height: 5px;
    }
    .ranking-table-wrap::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.03);
    }
    .ranking-table-wrap::-webkit-scrollbar-thumb {
        background: rgba(245,179,66,0.25);
        border-radius: 3px;
    }
    .ranking-table-wrap::-webkit-scrollbar-thumb:hover {
        background: rgba(245,179,66,0.4);
    }
    .ranking-table {
        font-size: 0.75rem;
        min-width: 560px;
    }
    .ranking-table th,
    .ranking-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    /* 横向滚动提示条 */
    .ranking-table-wrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 5px;
        width: 30px;
        background: linear-gradient(to left, var(--bg-surface, #1a1a2e), transparent);
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .ranking-table-wrap {
        position: relative;
    }
    .ranking-table-wrap.scrolled-to-end::after {
        opacity: 0;
    }
}

/* ================================================================
   名人堂 v3 · 极夜璀璨 · 暗黑奇幻 · 玻璃态流光
   ================================================================ */

/* ---- 名人堂标题区 ---- */
.hof-header {
    position: relative;
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 24px 36px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 179, 66, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(12, 10, 22, 0.95) 0%, rgba(8, 7, 16, 0.98) 100%);
    border: 1px solid rgba(245, 179, 66, 0.15);
}
.hof-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(245, 179, 66, 0.06) 50%, transparent 100%);
    animation: hof-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hof-shimmer {
    0%, 100% { transform: translateX(-50%); opacity: 0; }
    50% { transform: translateX(50%); opacity: 1; }
}
.hof-header-inner { position: relative; z-index: 2; }
.hof-title-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(245, 179, 66, 0.5)) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    animation: hof-float 4s ease-in-out infinite;
}
@keyframes hof-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hof-main-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #FFE89E 0%, #F5B342 30%, #FFD700 50%, #F5B342 70%, #D4A847 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-shadow: 0 0 40px rgba(245, 179, 66, 0.3);
    filter: drop-shadow(0 2px 8px rgba(245, 179, 66, 0.2));
}
.hof-sub-title {
    font-size: 0.8rem;
    color: rgba(245, 179, 66, 0.6);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0 0 16px;
    font-weight: 500;
}
.hof-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.hof-divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 179, 66, 0.5), transparent);
}
.hof-divider-ornament {
    color: #F5B342;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 8px rgba(245, 179, 66, 0.6));
}
.hof-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ---- 纪录保持者模块 ---- */
.hof-records-wrap {
    margin-bottom: 56px;
}
.hof-records-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.hof-records-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 12px rgba(245, 179, 66, 0.5));
}
.hof-records-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
}
.hof-records-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    opacity: 0.4;
    text-transform: uppercase;
    font-weight: 500;
}

.hof-records-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}

.hof-record-card {
    position: relative;
    border-radius: 18px;
    padding: 26px 22px;
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background:
        linear-gradient(145deg, rgba(30, 25, 50, 0.55) 0%, rgba(15, 12, 28, 0.7) 100%);
    border: 1px solid rgba(245, 179, 66, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hof-record-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 179, 66, 0.6) 50%, transparent 100%);
    opacity: 0.8;
}
.hof-record-card::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 179, 66, 0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s ease;
}
.hof-record-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(245, 179, 66, 0.4);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(245, 179, 66, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.hof-record-card:hover::after {
    transform: scale(1.15);
    opacity: 1.2;
}

/* 三色主题 */
.hof-record-card.record-level {
    background:
        linear-gradient(145deg, rgba(12, 35, 25, 0.6) 0%, rgba(8, 20, 14, 0.75) 100%);
    border-color: rgba(74, 222, 128, 0.2);
}
.hof-record-card.record-level::before {
    background: linear-gradient(90deg, transparent 0%, rgba(74, 222, 128, 0.6) 50%, transparent 100%);
}
.hof-record-card.record-level::after {
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 65%);
}
.hof-record-card.record-level:hover {
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 222, 128, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hof-record-card.record-gold {
    background:
        linear-gradient(145deg, rgba(45, 32, 12, 0.65) 0%, rgba(25, 18, 6, 0.78) 100%);
    border-color: rgba(245, 179, 66, 0.3);
}
.hof-record-card.record-gold::before {
    background: linear-gradient(90deg, transparent 0%, rgba(245, 179, 66, 0.7) 50%, transparent 100%);
}
.hof-record-card.record-gold::after {
    background: radial-gradient(circle, rgba(245, 179, 66, 0.18) 0%, transparent 65%);
}
.hof-record-card.record-gold:hover {
    border-color: rgba(245, 179, 66, 0.55);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(245, 179, 66, 0.18),
        inset 0 1px 0 rgba(255, 235, 180, 0.15);
}

.hof-record-card.record-power {
    background:
        linear-gradient(145deg, rgba(35, 15, 50, 0.6) 0%, rgba(18, 8, 28, 0.75) 100%);
    border-color: rgba(192, 132, 252, 0.22);
}
.hof-record-card.record-power::before {
    background: linear-gradient(90deg, transparent 0%, rgba(192, 132, 252, 0.6) 50%, transparent 100%);
}
.hof-record-card.record-power::after {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.14) 0%, transparent 65%);
}
.hof-record-card.record-power:hover {
    border-color: rgba(192, 132, 252, 0.45);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(192, 132, 252, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hof-record-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: linear-gradient(145deg, rgba(245, 179, 66, 0.15), rgba(245, 179, 66, 0.05));
    border: 1px solid rgba(245, 179, 66, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3);
}
.record-level .hof-record-icon {
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
    border-color: rgba(74, 222, 128, 0.3);
}
.record-gold .hof-record-icon {
    background: linear-gradient(145deg, rgba(245, 179, 66, 0.2), rgba(245, 179, 66, 0.08));
    border-color: rgba(245, 179, 66, 0.35);
}
.record-power .hof-record-icon {
    background: linear-gradient(145deg, rgba(192, 132, 252, 0.15), rgba(192, 132, 252, 0.05));
    border-color: rgba(192, 132, 252, 0.3);
}

.hof-record-category {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.record-level .hof-record-category { color: rgba(74, 222, 128, 0.75); }
.record-gold .hof-record-category { color: rgba(245, 179, 66, 0.8); }
.record-power .hof-record-category { color: rgba(192, 132, 252, 0.75); }

.hof-record-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFE89E 0%, #F5B342 40%, #D4A847 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(245, 179, 66, 0.2));
}
.record-level .hof-record-value {
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 50%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.2));
}
.record-power .hof-record-value {
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.2));
}

.hof-record-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hof-record-name::before {
    content: '◆';
    font-size: 0.6rem;
    color: rgba(245, 179, 66, 0.6);
}
.record-gold .hof-record-name { color: #FFE89E; }
.record-gold .hof-record-name::before { color: #F5B342; }

/* ---- 历史丰碑分隔 ---- */
.hof-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 56px 0 32px;
}
.hof-section-line {
    flex: 1;
    max-width: 220px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 179, 66, 0.35), transparent);
}
.hof-section-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 5px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(245, 179, 66, 0.2);
}

/* ================================================================
   名人堂 v4 · 史诗丰碑 · 黑曜石铭刻 · 稀有度光带
   ================================================================ */

/* ---- 成就卡片网格 ---- */
.hof-cards-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ---- 卡片主体：横向丰碑布局 ---- */
.hof-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 120px;
    background:
        linear-gradient(135deg, rgba(24, 20, 36, 0.9) 0%, rgba(14, 12, 22, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 左侧稀有度光带 */
.hof-card-rarity-bar {
    width: 5px;
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
}
.hof-card-rarity-bar::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 20px;
    background: inherit;
    filter: blur(12px);
    opacity: 0.6;
    pointer-events: none;
}

/* 卡片内容区 */
.hof-card-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 16px 16px;
    position: relative;
    z-index: 2;
}

/* 排名编号（左侧大号数字） */
.hof-card-rank {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hof-card-rank.rank-1 {
    color: #1a1204;
    background: linear-gradient(135deg, #FFE89E 0%, #F5B342 50%, #D4A847 100%);
    border-color: transparent;
    box-shadow:
        0 0 20px rgba(245, 179, 66, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hof-card-rank.rank-2 {
    color: #1e293b;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
    border-color: transparent;
    box-shadow:
        0 0 16px rgba(148, 163, 184, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hof-card-rank.rank-3 {
    color: #3a1f04;
    background: linear-gradient(135deg, #fed7aa 0%, #fb923c 50%, #d97706 100%);
    border-color: transparent;
    box-shadow:
        0 0 16px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 奖章图标容器 */
.hof-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}
.hof-card-icon::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 文字信息区 */
.hof-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 分类标签 + 稀有度徽记 */
.hof-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hof-card-cat {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hof-card-rarity-badge {
    display: flex;
    gap: 3px;
    align-items: center;
}
.hof-card-rarity-badge .rarity-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* 成就标题 */
.hof-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    letter-spacing: 0.3px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 获得者行 */
.hof-card-winner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}
.hof-card-winner .winner-label {
    opacity: 0.6;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
.hof-card-winner .winner-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pending-icon {
    font-size: 0.9rem;
    animation: pending-pulse 2s ease-in-out infinite;
    cursor: help;
    filter: drop-shadow(0 0 4px rgba(245, 179, 66, 0.5));
}
@keyframes pending-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 日期 */
.hof-card-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

/* ---- 稀有度视觉体系 ---- */

/* Rarity 5 - 传说 (金色) */
.hof-card.rarity-5 {
    background:
        linear-gradient(135deg, rgba(45, 32, 12, 0.85) 0%, rgba(25, 18, 6, 0.92) 100%);
    border-color: rgba(245, 179, 66, 0.25);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(245, 179, 66, 0.08),
        inset 0 1px 0 rgba(255, 230, 150, 0.08);
}
.hof-card.rarity-5 .hof-card-rarity-bar {
    background: linear-gradient(180deg, #FFE89E 0%, #F5B342 50%, #D4A847 100%);
    box-shadow: 0 0 16px rgba(245, 179, 66, 0.6);
}
.hof-card.rarity-5 .hof-card-icon {
    background: linear-gradient(145deg, rgba(245, 179, 66, 0.15) 0%, rgba(245, 179, 66, 0.05) 100%);
    border-color: rgba(245, 179, 66, 0.3);
}
.hof-card.rarity-5 .hof-card-icon::before {
    background: linear-gradient(135deg, rgba(255, 232, 158, 0.3), transparent 60%);
}
.hof-card.rarity-5 .hof-card-title {
    background: linear-gradient(135deg, #FFE89E 0%, #F5B342 40%, #D4A847 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(245, 179, 66, 0.3));
}
.hof-card.rarity-5 .hof-card-winner .winner-name {
    color: #FFE89E;
}
.hof-card.rarity-5 .hof-card-cat {
    color: rgba(245, 179, 66, 0.85);
    background: rgba(245, 179, 66, 0.1);
    border-color: rgba(245, 179, 66, 0.2);
}
.hof-card.rarity-5 .rarity-dot {
    background: #F5B342;
    box-shadow: 0 0 6px rgba(245, 179, 66, 0.8);
}

/* Rarity 4 - 史诗 (紫色) */
.hof-card.rarity-4 {
    background:
        linear-gradient(135deg, rgba(38, 20, 55, 0.8) 0%, rgba(18, 10, 28, 0.9) 100%);
    border-color: rgba(192, 132, 252, 0.18);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(192, 132, 252, 0.05),
        inset 0 1px 0 rgba(233, 213, 255, 0.05);
}
.hof-card.rarity-4 .hof-card-rarity-bar {
    background: linear-gradient(180deg, #e9d5ff 0%, #c084fc 50%, #a855f7 100%);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.5);
}
.hof-card.rarity-4 .hof-card-icon {
    background: linear-gradient(145deg, rgba(192, 132, 252, 0.12) 0%, rgba(192, 132, 252, 0.04) 100%);
    border-color: rgba(192, 132, 252, 0.22);
}
.hof-card.rarity-4 .hof-card-title {
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 60%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hof-card.rarity-4 .hof-card-winner .winner-name {
    color: #d8b4fe;
}
.hof-card.rarity-4 .hof-card-cat {
    color: rgba(192, 132, 252, 0.8);
    background: rgba(192, 132, 252, 0.08);
    border-color: rgba(192, 132, 252, 0.18);
}
.hof-card.rarity-4 .rarity-dot {
    background: #c084fc;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.7);
}

/* Rarity 3 - 稀有 (蓝色) */
.hof-card.rarity-3 {
    background:
        linear-gradient(135deg, rgba(18, 28, 50, 0.75) 0%, rgba(10, 16, 30, 0.88) 100%);
    border-color: rgba(96, 165, 250, 0.15);
}
.hof-card.rarity-3 .hof-card-rarity-bar {
    background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 50%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}
.hof-card.rarity-3 .hof-card-icon {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.03) 100%);
    border-color: rgba(96, 165, 250, 0.18);
}
.hof-card.rarity-3 .hof-card-title {
    color: #e0f2fe;
}
.hof-card.rarity-3 .hof-card-winner .winner-name {
    color: #93c5fd;
}
.hof-card.rarity-3 .hof-card-cat {
    color: rgba(96, 165, 250, 0.75);
    background: rgba(96, 165, 250, 0.06);
    border-color: rgba(96, 165, 250, 0.15);
}
.hof-card.rarity-3 .rarity-dot {
    background: #60a5fa;
    box-shadow: 0 0 5px rgba(96, 165, 250, 0.6);
}

/* Rarity 2 - 优秀 (绿色) */
.hof-card.rarity-2 {
    background:
        linear-gradient(135deg, rgba(12, 35, 25, 0.7) 0%, rgba(8, 20, 14, 0.85) 100%);
    border-color: rgba(74, 222, 128, 0.12);
}
.hof-card.rarity-2 .hof-card-rarity-bar {
    background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 50%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}
.hof-card.rarity-2 .hof-card-icon {
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.08) 0%, rgba(74, 222, 128, 0.02) 100%);
    border-color: rgba(74, 222, 128, 0.15);
}
.hof-card.rarity-2 .hof-card-title {
    color: #dcfce7;
}
.hof-card.rarity-2 .hof-card-winner .winner-name {
    color: #86efac;
}
.hof-card.rarity-2 .hof-card-cat {
    color: rgba(74, 222, 128, 0.7);
    background: rgba(74, 222, 128, 0.05);
    border-color: rgba(74, 222, 128, 0.12);
}
.hof-card.rarity-2 .rarity-dot {
    background: #4ade80;
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
}

/* Rarity 1 - 普通 (灰色) */
.hof-card.rarity-1 {
    opacity: 0.85;
}
.hof-card.rarity-1 .hof-card-rarity-bar {
    background: linear-gradient(180deg, #e5e7eb 0%, #9ca3af 50%, #6b7280 100%);
    opacity: 0.6;
}
.hof-card.rarity-1 .rarity-dot {
    background: rgba(255, 255, 255, 0.3);
}

/* Hover 效果 */
.hof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 179, 66, 0.25);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(245, 179, 66, 0.08),
        inset 0 1px 0 rgba(255, 230, 150, 0.08);
}
.hof-card.rarity-5:hover {
    border-color: rgba(245, 179, 66, 0.5);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(245, 179, 66, 0.25),
        inset 0 1px 0 rgba(255, 230, 150, 0.15);
}
.hof-card.rarity-4:hover {
    border-color: rgba(192, 132, 252, 0.32);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(192, 132, 252, 0.1),
        inset 0 1px 0 rgba(233, 213, 255, 0.08);
}
.hof-card.rarity-3:hover {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.5),
        0 0 36px rgba(96, 165, 250, 0.08);
}
.hof-card.rarity-2:hover {
    border-color: rgba(74, 222, 128, 0.22);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(74, 222, 128, 0.06);
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .hof-cards-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 500px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .hof-header {
        padding: 32px 16px 24px;
        border-radius: 16px;
    }
    .hof-title-icon { font-size: 2.2rem; }
    .hof-main-title {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }
    .hof-sub-title {
        font-size: 0.7rem;
        letter-spacing: 4px;
    }
    .hof-divider-line { width: 50px; }

    .hof-records-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 14px;
    }
    .hof-record-card { padding: 20px 18px; }
    .hof-record-icon {
        width: 40px; height: 40px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    .hof-record-value { font-size: 1.8rem; }

    .hof-section-text {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .hof-card-content {
        padding: 14px 14px 14px 12px;
        gap: 12px;
    }
    .hof-card-rank {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    .hof-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 12px;
    }
    .hof-card-title { font-size: 0.88rem; }
}

/* ================================================================
   AXIOM v4.0.0 — 排行榜图表容器（JS 动态创建，需显式像素高度）
   ================================================================ */
.rank-chart {
  position: relative;
  width: 100%;
  height: 480px;
  margin: 8px 0 28px;
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(180deg, rgba(18, 19, 26, 0.6), rgba(10, 11, 13, 0.4));
  border: 1px solid rgba(245, 179, 66, 0.08);
  overflow: hidden;
}
.rank-chart::after {
  content: '📊';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(245, 179, 66, 0.25);
  pointer-events: none;
}
.rank-chart.loaded::after { display: none; }

@media (max-width: 767px) {
  .rank-chart { height: 360px; margin: 4px 0 20px; }
}

/* ================================================================
   v6.8 修复 — 排行榜 reveal-up 元素被 scroll-driven 动画压暗
   现象: 玩家等级/金币/金铢/银铢排行（TOP 100 大表）整体雾蒙蒙暗沉沉
         （实测 .ranking-table-wrap opacity≈0.3、下移 21px），
         表格下方「职业势力分布」甚至完全透明（opacity=0）；
         而公会/BOSS 排行（数据行少、表格矮）显示正常。
   根因: style.css 末段 .reveal-up 在支持 scroll-driven animation 的
         浏览器（Chrome 115+）中被 @supports 块接管：
           animation: scroll-reveal-up both;
           animation-timeline: view();
           animation-range: entry 0% cover 30%;
         透明度完全由元素相对视口的滚动进度决定，且 CSS 动画优先级
         高于 JS 添加的 .reveal-visible / .is-visible 类。
         TOP 100 大表元素超高 → 页面顶部时 view() 进度仅约 30% →
         卡在动画中间态（opacity≈0.3）；矮表格进度早已 >30% 故正常。
   修复: 排行页为数据展示页，禁用滚动透明入场动画，强制完全可见。
         !important 声明优先级高于动画，可稳定覆盖所有浏览器路径。
   ================================================================ */
.reveal-up,
.reveal-fade,
.reveal,
.reveal-left,
.reveal-right {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ================================================================
   T260922-01 2026-09-22 排行榜访问门槛 · 镭射卡片（v36.2）
   /ranking.php 未达「主角色 Lv.32 或黄金会员」时整页替换为该卡片；
   层级：本体背景 < .rg-foil 虹彩旋转层 < .rg-sheen 斜向扫光 < .rg-body 内容
   （无 @layer，按 CSS 级联自然覆盖上方 @layer axiom-ranking 内的同名区域样式）
   ================================================================ */
.rank-gate-wrap {
    display: flex;
    justify-content: center;
    padding: 26px 0 64px;
}

.rank-gate-card {
    position: relative;
    width: min(560px, 100%);
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(212, 165, 90, .34);
    background:
        radial-gradient(120% 90% at 10% 0%, rgba(255, 255, 255, .10), transparent 62%),
        linear-gradient(160deg, #15171e 0%, #1c2029 46%, #0f1116 100%);
    box-shadow: 0 26px 64px rgba(0, 0, 0, .62), 0 0 46px rgba(212, 165, 90, .13);
}

/* 镭射虹彩层：conic 渐变整体旋转，模拟全息箔纸流动虹彩 */
.rank-gate-card .rg-foil {
    position: absolute;
    inset: -32%;
    z-index: 0;
    background: conic-gradient(from 200deg,
        rgba(255, 108, 108, .20), rgba(255, 214, 110, .20) 16%,
        rgba(120, 255, 190, .17) 32%, rgba(110, 200, 255, .20) 50%,
        rgba(190, 120, 255, .20) 68%, rgba(255, 152, 110, .18) 84%,
        rgba(255, 108, 108, .20));
    filter: blur(30px) saturate(1.25);
    opacity: .72;
    animation: rgFoilSpin 20s linear infinite;
    pointer-events: none;
}

/* 斜向高光扫条 */
.rank-gate-card .rg-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg,
        transparent 36%, rgba(255, 255, 255, .16) 46%,
        rgba(255, 255, 255, .045) 52%, transparent 62%);
    animation: rgSheen 7s ease-in-out infinite;
    pointer-events: none;
}

.rank-gate-card .rg-body {
    position: relative;
    z-index: 2;
    padding: 38px 34px 30px;
    text-align: center;
}

.rank-gate-card .rg-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
    background: conic-gradient(from 40deg,
        rgba(255, 226, 150, .30), rgba(120, 255, 210, .22), rgba(150, 180, 255, .26),
        rgba(230, 150, 255, .24), rgba(255, 226, 150, .30));
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .16), 0 8px 26px rgba(212, 165, 90, .22);
}

.rank-gate-card .rg-eyebrow {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
}

.rank-gate-card .rg-title {
    margin: 10px 0 0;
    font-family: var(--font-display, 'Cinzel Decorative', serif);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .06em;
    background: linear-gradient(135deg, #fff6d0 0%, #ffe58f 34%, #d4a55a 68%, #f6e3a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 16px rgba(212, 165, 90, .30));
}

.rank-gate-card .rg-desc {
    margin: 14px auto 0;
    max-width: 420px;
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .70);
}

.rank-gate-card .rg-desc b { color: #ffe58f; font-weight: 700; }

.rank-gate-card .rg-progress {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: 360px;
    margin: 24px auto 9px;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .58);
}

.rank-gate-card .rg-p-value b {
    color: #ffe58f;
    font-variant-numeric: tabular-nums;
}

.rank-gate-card .rg-bar {
    height: 8px;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    overflow: hidden;
}

.rank-gate-card .rg-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d4a55a, #ffe58f 58%, #fff6d0);
    box-shadow: 0 0 14px rgba(255, 229, 143, .55);
}

.rank-gate-card .rg-tip {
    margin-top: 16px;
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .52);
}

.rank-gate-card .rg-tip b { color: #ffe58f; }

.rank-gate-card .rg-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #1a1408;
    text-decoration: none;
    background: linear-gradient(135deg, #f6e3a8 0%, #d4a55a 46%, #b8893a 100%);
    box-shadow: 0 10px 26px rgba(212, 165, 90, .30);
    transition: transform .18s ease, box-shadow .18s ease;
}

.rank-gate-card .rg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(212, 165, 90, .45);
}

.rank-gate-card .rg-btn:focus-visible {
    outline: 2px solid rgba(255, 229, 143, .85);
    outline-offset: 3px;
}

.rank-gate-card .rg-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11.5px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .34);
}

@keyframes rgFoilSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes rgSheen {
    0%   { transform: translateX(-42%); opacity: 0; }
    40%  { opacity: 1; }
    70%  { transform: translateX(42%); opacity: 0; }
    100% { transform: translateX(42%); opacity: 0; }
}

@media (max-width: 560px) {
    .rank-gate-card .rg-body { padding: 30px 22px 24px; }
    .rank-gate-card .rg-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .rank-gate-card .rg-foil,
    .rank-gate-card .rg-sheen { animation: none; }
    .rank-gate-card .rg-foil { opacity: .55; }
}

.light-mode .rank-gate-card {
    border-color: rgba(212, 165, 90, .45);
    box-shadow: 0 26px 64px rgba(0, 0, 0, .32), 0 0 40px rgba(212, 165, 90, .16);
}
