:root {
      --bg:      #000000;
      --surface: #0d0d12;
      --border:  #1a1a2e;
      --accent:  #ff4d00;
      --accent2: #ff8c00;
      --green:   #00ff88;
      --red:     #ff3355;
      --yellow:  #ffcc00;
      --cyan:    #00e5ff;
      --text:    #e8e8f0;
      --muted:   #ffffff;
      --mono:    'Share Tech Mono', monospace;
      --display: 'Orbitron', sans-serif;
      --body:    'Inter', sans-serif;

      --up-modal-font-family: 'Orbitron', ui-sans-serif, sans-serif;
      --up-modal-dark-bg: #0a0608;
      --up-modal-bg: #0a0608;
      --up-modal-font-dark-color: #f5ece0;
      --up-modal-font-color: #f5ece0;
      --up-modal-btn-dark-color: #ff4d00;
      --up-modal-btn-color: #ff4d00;
      --up-modal-btn-dark-text: #1a0f00;
      --up-modal-btn-text: #1a0f00;
      --up-modal-border-radius: 18px;
      --up-modal-btn-radius: 14px;

      /* Fluid font scale — all UI text derives from these */
      --fs-xs:  clamp(7px,  0.5vw,  9px);
      --fs-sm:  clamp(8px,  0.6vw,  11px);
      --fs-md:  clamp(10px, 0.75vw, 14px);
      --fs-lg:  clamp(14px, 1.1vw,  20px);
      --fs-xl:  clamp(18px, 1.5vw,  26px);
      --fs-2xl: clamp(24px, 2.2vw,  42px);

      /* Leaderboard sidebar width */
      --sidebar-w: 13.25vw;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    * {
      -webkit-tap-highlight-color: transparent;
      -webkit-touch-callout: none;
    }
    body {
      background: #000000;
      background-image: url('background.png');
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      background-repeat: no-repeat;
      overflow-y: auto;
    }
    /* Scan-line overlay on the whole page */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
      );
      pointer-events: none;
      z-index: 9998;
    }

    /* ── Navbar ─────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  width: 100%;
  background: linear-gradient(135deg, #ff4d00, #ff8c00);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 38px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  box-shadow:
    0 2px 12px rgba(255,77,0,0.35),
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -6px 18px rgba(0,0,0,0.25) inset;
  overflow: visible;
}
.navbar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: #ffd400;
  opacity: 0.6;
  pointer-events: none;
}
.navbar > * { position: relative; z-index: 1; }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #000;
  text-transform: uppercase;
  margin-right: 28px;
  text-decoration: none;
  opacity: 0.92;
}
.navbar-brand-cursor {
  display: inline-block;
  font-weight: 900;
  animation: dot-blink 1s steps(2, start) infinite;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35) 30%, rgba(0,229,255,0.45) 50%, rgba(0,0,0,0.35) 70%, transparent);
  margin: 0 4px;
  flex-shrink: 0;
  border-radius: 1px;
}
.navbar-link {
  position: relative;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 3px;
  transition: background 0.15s, opacity 0.15s, letter-spacing 0.15s;
  opacity: 0.7;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-link::before,
.navbar-link::after {
  opacity: 0;
  transition: opacity 0.15s, margin 0.15s;
  font-weight: 900;
}
.navbar-link::before { content: '['; margin-right: 0; }
.navbar-link::after  { content: ']'; margin-left: 0; }
.navbar-link:hover {
  background: rgba(0,0,0,0.12);
  opacity: 1;
  letter-spacing: 2.5px;
}
.navbar-link:hover::before, .navbar-link.active::before { opacity: 0.6; margin-right: 3px; }
.navbar-link.active::before { content: ''; background-image: url('image2.jpeg'); background-size: contain; background-repeat: no-repeat; background-position: center; width: 28px; height: 28px; display: inline-block; opacity: 1; margin-right: 4px; vertical-align: middle; }
.navbar-link:hover::after { opacity: 0.6; margin-left: 3px; }
.navbar-link.active::after  { content: ''; opacity: 0 !important; }
.navbar-link.active {
  color: #ff8c00;
  opacity: 1;
  letter-spacing: 2.5px;
  text-shadow: 0 0 10px rgba(255,140,0,0.8), 0 0 20px rgba(255,140,0,0.4);
  background: linear-gradient(145deg, #2a2a2a 0%, #050505 55%, #000 100%);
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  transform: none;
  align-self: center;
  display: flex;
  align-items: center;
  height: 24px;
  padding-top: 0;
  padding-bottom: 0;
  animation: active-tab-sheen 2.4s ease-in-out infinite;
}
@keyframes active-tab-tilt {
  0%, 100% { transform: none; }
  50%      { transform: none; }
}
@keyframes active-tab-sheen {
  0%   { box-shadow: 0 0 8px rgba(255,140,0,0.4), 0 0 18px rgba(255,100,0,0.2), inset 0 0 6px rgba(255,140,0,0.05); }
  50%  { box-shadow: 0 0 16px rgba(255,140,0,0.75), 0 0 32px rgba(255,100,0,0.4), 0 0 48px rgba(255,60,0,0.15), inset 0 0 10px rgba(255,140,0,0.12); }
  100% { box-shadow: 0 0 8px rgba(255,140,0,0.4), 0 0 18px rgba(255,100,0,0.2), inset 0 0 6px rgba(255,140,0,0.05); }
}

/* ── Brand Dropdown ──────────────────────────────────────────────────── */
.navbar-brand-wrap {
  position: relative;
  margin-right: 28px;
  flex-shrink: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.92;
  cursor: pointer;
  user-select: none;
  margin-right: 0;
}
.navbar-brand-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #0a0608;
  border: 1px solid rgba(255,77,0,0.35);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 20px rgba(255,77,0,0.15);
  min-width: 140px;
  z-index: 10000;
  overflow: hidden;
  animation: dropdown-in 0.18s ease;
}
@keyframes dropdown-in {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.navbar-brand-wrap.open .navbar-brand-dropdown {
  display: block;
}
.navbar-dropdown-item {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e8e8f0;
  text-transform: uppercase;
  padding: 10px 16px;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border-bottom: 1px solid rgba(255,77,0,0.1);
}
.navbar-dropdown-item:last-child { border-bottom: none; }
.navbar-dropdown-item:hover {
  background: rgba(255,77,0,0.15);
  color: #ff8c00;
}
.navbar-dropdown-item .dd-icon { margin-right: 8px; }

.navbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
@property --garden-spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes garden-rotate { to { --garden-spin: 360deg; } }
@keyframes garden-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,184,0,0.55), 0 0 14px rgba(255,140,0,0.35), inset 0 0 10px rgba(255,255,255,0.18); }
  50%      { box-shadow: 0 0 0 4px rgba(255,184,0,0.12), 0 0 22px rgba(255,140,0,0.55), inset 0 0 14px rgba(255,255,255,0.28); }
}
@keyframes garden-pulse-leave {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.45), 0 0 14px rgba(0,255,136,0.30), inset 0 0 10px rgba(255,255,255,0.16); }
  50%      { box-shadow: 0 0 0 4px rgba(0,255,136,0.10), 0 0 22px rgba(0,255,136,0.50), inset 0 0 14px rgba(255,255,255,0.26); }
}
@keyframes garden-sweep {
  0%   { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(230%)  skewX(-18deg); }
}
@keyframes garden-pop {
  0%   { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(4deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg);     opacity: 1; }
}
#connect-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #1a0f00;
  padding: 7px 18px;
  opacity: 1;
  background: linear-gradient(135deg, #ffc830 0%, #ffe680 22%, #ffffff 48%, #fff0a0 74%, #ffb800 100%);
  box-shadow: 0 0 0 0 rgba(255,184,0,0.55), 0 2px 8px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,255,255,0.18);
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, filter 0.2s ease, letter-spacing 0.2s ease;
  animation: garden-pulse 2.6s ease-in-out infinite;
  will-change: transform;
}
#connect-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--garden-spin), #ffb800, #fff3b0, #ff7a00, #ffe680, #ffb800);
  animation: garden-rotate 3.2s linear infinite;
  filter: saturate(1.3);
}
#connect-btn::after {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%; left: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: garden-sweep 2.8s ease-in-out infinite;
  animation-delay: 0.4s;
}
#connect-btn:hover {
  transform: translateY(-2px) scale(1.045);
  letter-spacing: 2.6px;
  filter: brightness(1.08) saturate(1.15);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.18), 0 6px 18px rgba(255,122,0,0.40), inset 0 0 14px rgba(255,255,255,0.3);
}
#connect-btn:active { transform: translateY(0) scale(0.96); filter: brightness(0.97); transition-duration: 0.08s; }
#connect-btn:focus-visible { outline: 2px solid #fff3b0; outline-offset: 3px; }
#connect-btn .connect-l1, #connect-btn .connect-l2 { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  #connect-btn, #connect-btn::before, #connect-btn::after { animation: none !important; }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
#connected-dot {
  display: none;
  width: 10px; height: 10px;
  min-width: 10px; min-height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
  animation: dot-blink 1.5s ease-in-out infinite;
}
#connected-dot.is-connected { display: inline-block; }
#up-identity.is-connected { display: inline-flex !important; }
@media (max-width: 1360px) {
  #up-identity.is-connected { display: none !important; }
  #up-identity { display: none !important; }
}
@media (max-width: 856px) {
  #up-name { display: none; }
  #up-pfp  { display: none; }
  #up-identity.is-connected { display: none !important; }
}
#disconnect-btn.btn-connected {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border: none !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase !important;
  color: #1a0f00 !important;
  padding: 7px 18px !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, #00ffaa 0%, #b9ffe3 22%, #ffffff 48%, #c9ffe9 74%, #00e09a 100%) !important;
  box-shadow: 0 0 0 0 rgba(0,255,136,0.45), 0 2px 8px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,255,255,0.16) !important;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, filter 0.2s ease, letter-spacing 0.2s ease !important;
  animation: garden-pulse-leave 2.6s ease-in-out infinite, garden-pop 0.45s cubic-bezier(.34,1.56,.64,1) !important;
  will-change: transform;
}
#disconnect-btn.btn-connected::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--garden-spin), #00e09a, #d6fff0, #00ffaa, #b9ffe3, #00e09a);
  animation: garden-rotate 3.2s linear infinite;
  filter: saturate(1.3);
}
#disconnect-btn.btn-connected::after {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%; left: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: garden-sweep 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}
#disconnect-btn.btn-connected:hover {
  transform: translateY(-2px) scale(1.045) !important;
  letter-spacing: 2.6px !important;
  filter: brightness(1.08) saturate(1.15) !important;
  box-shadow: 0 0 0 3px rgba(0,255,136,0.18), 0 6px 18px rgba(0,255,136,0.40), inset 0 0 14px rgba(255,255,255,0.3) !important;
}
#disconnect-btn.btn-connected:active { transform: translateY(0) scale(0.96) !important; filter: brightness(0.97) !important; transition-duration: 0.08s !important; }
#disconnect-btn.btn-connected:focus-visible { outline: 2px solid #d6fff0 !important; outline-offset: 3px !important; }
#disconnect-btn .disconnect-label-short, #disconnect-btn .disconnect-label-full { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  #disconnect-btn.btn-connected, #disconnect-btn.btn-connected::before, #disconnect-btn.btn-connected::after { animation: none !important; }
}
.disconnect-label-short { display: none; }
@media (min-width: 857px) {
  #connect-btn { border-radius: 20px !important; }
}
@media (max-width: 856px) {
  .navbar-brand { display: none; }
  .navbar {
    padding: 0 8px;
    overflow: visible;
  }
  .navbar-links {
    flex: 1;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    overflow: hidden;
  }
  .navbar-link {
    padding: 5px 7px !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap;
  }
  .navbar-link:hover, .navbar-link.active { letter-spacing: 0.5px !important; }
  .navbar-link::before, .navbar-link::after { display: none !important; }
  .navbar-link.active::before { display: inline-block !important; content: ''; background-image: url('image2.jpeg'); background-size: contain; background-repeat: no-repeat; background-position: center; width: 28px; height: 28px; opacity: 1; margin-right: 4px; vertical-align: middle; }
  .navbar-link.active::after  { display: none !important; content: ''; }
  .navbar-actions {
    flex-shrink: 0;
    gap: 4px;
    margin-left: 4px;
  }
  #connect-btn {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
    padding: 4px 5px !important;
    font-size: 7px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    color: #1a0f00 !important;
    white-space: normal;
    width: 42px;
    flex-shrink: 0;
  }
  #connect-btn:hover { transform: none; letter-spacing: 0.5px !important; }
  #connect-btn .connect-l1,
  #connect-btn .connect-l2 { display: block; }
  #connect-btn.btn-hidden-mobile { display: none !important; }
  #connected-dot { display: none !important; }
  #connected-dot.is-connected {
    display: inline-block !important;
    visibility: visible !important;
    margin: 0 !important;
  }
  #disconnect-btn.btn-connected {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    padding: 4px 7px !important;
    font-size: 7px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  #disconnect-btn.btn-connected:hover { transform: none !important; letter-spacing: 0.5px !important; }
  .disconnect-label-short { display: inline; }
  .disconnect-label-full { display: none; }
  #up-identity.is-connected {
    display: none !important;
  }
}

@media (max-width: 856px) {
  /* Spinner centered vertically on the TOP 10 title (lb-header ~62px below navbar 38px) */
  .lb-list .lb-loading {
    position: fixed !important;
    top: 69px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    flex-shrink: 0;
    min-height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
  }
}

@media (max-width: 855px) {
  body { overflow-y: auto; }
}

    /* ── Layout ─────────────────────────────────────────────────────────── */
    .layout {
      display: flex;
      align-items: flex-start;
      gap: 0;
      min-height: 100vh;
      position: relative;
      z-index: 1;
    }

    /* ── Leaderboard sidebar ─────────────────────────────────────────────── */
    #leaderboard-sidebar {
      width: var(--sidebar-w);
      min-width: var(--sidebar-w);
      position: fixed;
      top: 38px;
      height: 100vh;
      overflow-y: auto;
      overflow-x: hidden;
      border-right: 1px solid var(--border);
      background: transparent;
      backdrop-filter: blur(12px);
      padding: 0 0 40px;
      scrollbar-width: thin;
      scrollbar-color: var(--accent) transparent;
    }
    #leaderboard-sidebar::-webkit-scrollbar { width: 3px; }
    #leaderboard-sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

    .lb-banner {
      width: 100%;
      display: block;
      background: transparent;
      line-height: 0;
    }
    .lb-banner img {
      width: 40%;
      height: auto;
      display: block;
      margin: 10px auto;
      mix-blend-mode: screen;
    }

    .lb-header {
      padding: 7px 16px 7px;
      margin-bottom: 16px;
      margin-left: -3px;
      transition: box-shadow 0.2s;
    }
    .lb-header:hover {
      box-shadow: 0 2px 20px rgba(255,77,0,0.15);
    }
    .lb-title {
      font-family: var(--display);
      font-size: clamp(11px, 0.9vw, 16px);
      font-weight: 700;
      letter-spacing: 3px;
      color: #eeff00;
      text-transform: uppercase;
      margin-bottom: 4px;
      text-align: center;
      text-shadow: 0 0 12px rgba(238,255,0,0.7), 0 0 28px rgba(238,255,0,0.3);
      animation: halo-yellow 3s ease-in-out infinite;
    }
    .lb-subtitle {
      font-family: var(--mono);
      font-size: var(--fs-xs);
      color: #eeff00;
      letter-spacing: 1px;
      text-align: center;
      opacity: 0.7;
    }

    .lb-list { padding: 0 10px; }

    /* ── Entry layout ──────────────────────────────────────────────────── */
    .lb-entry {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: space-between;
      padding: 8px 8px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
      border: 1px solid transparent;
      margin-bottom: 4px;
    }
    .lb-entry:hover {
      background: rgba(255,77,0,0.06);
      border-color: rgba(255,77,0,0.2);
    }

    .lb-rank {
      font-family: var(--display);
      font-size: var(--fs-xs);
      font-weight: 900;
      text-align: center;
    }
    .lb-rank.r1 { color: #FFD700; }
    .lb-rank.r2 { color: #C0C0C0; }
    .lb-rank.r3 { color: #CD7F32; }
    .lb-rank.rn { color: #555566; }
/* ── Sidebar decorative rank frames ──────────────────────────────── */
.lb-pfp-frame {
  position: relative;
  display: inline-flex;
  margin-left: 1px !important;
  justify-content: center;
  flex-shrink: 0;
}
.lb-pfp-frame .lb-pfp {
  position: relative;
  z-index: 2;
}
.lb-pfp-frame.rank-frame-1::after {
  content: '';
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: -14px;
  right: -8px;
  background: url('1.png') center / contain no-repeat;
  z-index: 4;
  pointer-events: none;
}
.lb-pfp-frame.rank-frame-2::after {
  content: '';
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: -14px;
  right: -8px;
  background: url('2.png') center / contain no-repeat;
  z-index: 4;
  pointer-events: none;
}
.lb-pfp-frame.rank-frame-3::after {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -6px;
  right: -0px;
  background: url('3.png') center / contain no-repeat;
  z-index: 4;
  pointer-events: none;
}
.lb-entry.rank-1 .lb-pfp-frame,
.lb-entry.rank-2 .lb-pfp-frame,
.lb-entry.rank-3 .lb-pfp-frame {
  margin-left: 0px;
}
.lb-entry.rank-1,
.lb-entry.rank-2,
.lb-entry.rank-3 {
  overflow: visible !important;
}
.lb-entry.rank-1 .lb-pfp {
  width: 39px;
  height: 39px;
}
.lb-entry.rank-2 .lb-pfp {
  width: 38px;
  height: 38px;
}
.lb-entry.rank-3 .lb-pfp {
  width: 29px;
  height: 29px;
  margin-left: -4px;
}
.lb-pfp-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;  /* width of the largest rank frame */
  height: 42px;
}
.lb-entry.rank-1:hover { background: rgba(255,215,0,0.12) !important; border-color: rgba(255,215,0,0.4) !important; }
.lb-entry.rank-2:hover { background: rgba(192,192,192,0.12) !important; border-color: rgba(192,192,192,0.4) !important; }
.lb-entry.rank-3:hover { background: rgba(205,127,50,0.12) !important; border-color: rgba(205,127,50,0.4) !important; }
.lb-entry.rank-1 .lb-score { color: #FFD700; font-size: 19px; }
.lb-entry.rank-2 .lb-score { color: #C0C0C0; font-size: 17px; }
.lb-entry.rank-3 .lb-score { color: #CD7F32; font-size: 15px; }
    .lb-pfp {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid rgba(255, 2, 213, 0.3);
      flex-shrink: 0;
      background: var(--surface);
      display: block;
    }
    .lb-pfp-placeholder {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid rgba(255,77,0,0.3);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 9px;
      color: #333;
    }

    .lb-info { min-width: 0; }
    .lb-name {
      font-family: var(--mono);
      font-size: clamp(9px, 0.7vw, 13px);
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .lb-addr {
      font-family: var(--mono);
      font-size: var(--fs-xs);
      color: #7e7e94;
      margin-top: 1px;
    }

    .lb-score {
      font-family: var(--display);
      font-size: clamp(9px, 0.7vw, 13px);
      font-weight: 700;
      text-align: right;
      margin-left: auto;
      flex-shrink: 0; 
    }
    .lb-score.high  { color: var(--green); }
    .lb-score.mid   { color: var(--yellow); }
    .lb-score.low   { color: var(--red); }

    .lb-loading {
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      text-align: center;
    }
    .lb-loading-spinner {
      position: relative;
      width: 70px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .lb-loading-spinner::before {
      content: '';
      position: absolute;
      inset: 0;
      border: 2px solid rgba(255,77,0,0.3);
      border-top-color: #ff4d00;
      border-radius: 50%;
      animation: lbSpinRing 0.9s linear infinite;
    }
    .lb-loading-spinner img {
      width: 54px;
      height: 54px;
      object-fit: contain;
      mix-blend-mode: lighten;
      position: relative;
      z-index: 1;
    }
    .lb-loading-text {
      font-family: var(--mono);
      font-size: var(--fs-xs);
      color: #555566;
      letter-spacing: 2px;
      text-transform: uppercase;
    }
    @keyframes lbSpinRing {
      to { transform: rotate(360deg); }
    }
    .lb-error {
      padding: 12px 16px;
      font-family: var(--mono);
      font-size: var(--fs-xs);
      color: var(--red);
      letter-spacing: 1px;
      text-align: center;
    }

/* ── TOP10 end divider ──────────────────────────────────────────────── */
.lb-top10-divider {
  position: relative;
  width: calc(100% - 20px);
  height: 1px;
  margin: 11px 10px;
  background: linear-gradient(90deg, transparent, rgba(255,77,0,0.55) 50%, transparent);
}
.lb-top10-divider::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 50%;
  width: 5px;
  height: 4px;
  background: var(--accent2);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px 2px rgba(255,140,0,0.7);
}

/* ── Visitor counter — Premium Glass Panel ───────────────────────────── */
#lb-visitors {
  position: relative;
  margin: 0 10px 4px;
  padding: 14px 10px 12px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,77,0,0.07), rgba(10,10,16,0.85) 60%);
  border: 1px solid rgba(255,140,0,0.22);
  box-shadow:
    0 0 0 1px rgba(255,77,0,0.05) inset,
    0 4px 18px -4px rgba(255,60,0,0.2);
  will-change: auto;
}
#lb-visitors::before {
  /* top accent line */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent2), var(--accent), transparent);
  opacity: 0.85;
}
.lb-visitors-glow {
  display: none;
}
.lb-visitors-scan {
  display: none;
}
@keyframes visitors-icon-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.lb-visitors-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.lb-visitors-icon {
  font-size: 7px;
  color: var(--accent2);
  opacity: 0.7;
  animation: visitors-icon-pulse 2.4s ease-in-out infinite;
}
.lb-visitors-icon:last-child { animation-delay: 1.2s; }
.lb-visitors-caption {
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #ffd9ad;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,140,0,0.4);
}
.lb-visitors-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lb-visitors-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.lb-visitors-val {
  font-family: var(--display);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(0,229,255,0.55), 0 0 2px rgba(0,229,255,0.3);
  transition: text-shadow 0.3s;
}
.lb-visitors-label {
  font-family: var(--mono);
  font-size: 7px;
  color: #9a8a7a;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.lb-visitors-sep {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(255,140,0,0.5), transparent);
}

/* ── HALO & GLOW ANIMATIONS ──────────────────────────────────────── */
@keyframes halo-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255,77,0,0.55), 0 0 40px rgba(255,140,0,0.22), inset 0 1px 0 rgba(255,200,0,0.15); }
  50%       { box-shadow: 0 0 32px rgba(255,100,0,0.85), 0 0 70px rgba(255,140,0,0.38), inset 0 1px 0 rgba(255,230,0,0.25); }
}
@keyframes halo-green {
  0%, 100% { box-shadow: 0 0 16px rgba(0,255,136,0.5), 0 0 36px rgba(0,255,136,0.2); }
  50%       { box-shadow: 0 0 30px rgba(0,255,136,0.85), 0 0 60px rgba(0,255,136,0.35); }
}
@keyframes halo-yellow {
  0%, 100% { box-shadow: 0 0 16px rgba(255,204,0,0.5), 0 0 36px rgba(255,204,0,0.2); }
  50%       { box-shadow: 0 0 30px rgba(255,204,0,0.85), 0 0 60px rgba(255,204,0,0.35); }
}
@keyframes halo-red {
  0%, 100% { box-shadow: 0 0 16px rgba(255,51,85,0.5), 0 0 36px rgba(255,51,85,0.2); }
  50%       { box-shadow: 0 0 30px rgba(255,51,85,0.85), 0 0 60px rgba(255,51,85,0.35); }
}
@keyframes shimmer-slide {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
@keyframes float-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rank-glow-gold {
  0%, 100% { text-shadow: 0 0 8px #FFD700, 0 0 22px rgba(255,215,0,0.6); }
  50%       { text-shadow: 0 0 18px #FFD700, 0 0 44px rgba(255,215,0,0.9); }
}
@keyframes rank-glow-silver {
  0%, 100% { text-shadow: 0 0 8px #C0C0C0, 0 0 22px rgba(192,192,192,0.6); }
  50%       { text-shadow: 0 0 18px #C0C0C0, 0 0 44px rgba(192,192,192,0.9); }
}
@keyframes rank-glow-bronze {
  0%, 100% { text-shadow: 0 0 8px #CD7F32, 0 0 22px rgba(205,127,50,0.6); }
  50%       { text-shadow: 0 0 18px #CD7F32, 0 0 44px rgba(205,127,50,0.9); }
}
@keyframes border-dance {
  0%   { border-color: rgba(255,77,0,0.6); }
  33%  { border-color: rgba(255,140,0,0.8); }
  66%  { border-color: rgba(255,200,0,0.6); }
  100% { border-color: rgba(255,77,0,0.6); }
}
@keyframes scan-line {
  0%   { top: 0; }
  100% { top: 100%; }
}
@keyframes navbar-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); opacity:0; }
  40%  { opacity: 0.18; }
  100% { transform: translateX(300%) skewX(-15deg); opacity:0; }
}

/* ── Sidebar entries: halo on hover + animated score ──────────────── */
.lb-entry {
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.18s !important;
}
.lb-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,140,0,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.lb-entry:hover {
  background: rgba(255,77,0,0.08) !important;
  border-color: rgba(255,140,0,0.45) !important;
  box-shadow: 0 0 20px rgba(255,100,0,0.18), inset 0 1px 0 rgba(255,200,0,0.1) !important;
  transform: translateX(2px) !important;
}
.lb-entry:hover::before {
  opacity: 1;
  animation: shimmer-slide 1.5s ease infinite;
}
.lb-entry.rank-1 { animation: float-up 0.4s ease forwards; }
.lb-entry.rank-2 { animation: float-up 0.5s ease forwards; }
.lb-entry.rank-3 { animation: float-up 0.6s ease forwards; }
.lb-entry.rank-1 .lb-rank { animation: rank-glow-gold   2.5s ease-in-out infinite; }
.lb-entry.rank-2 .lb-rank { animation: rank-glow-silver 2.5s ease-in-out infinite; }
.lb-entry.rank-3 .lb-rank { animation: rank-glow-bronze 2.5s ease-in-out infinite; }
.lb-entry.rank-1:hover { background: rgba(255,215,0,0.1) !important; border-color: rgba(255,215,0,0.5) !important; box-shadow: 0 0 28px rgba(255,215,0,0.22), 0 0 0 1px rgba(255,215,0,0.25) !important; }
.lb-entry.rank-2:hover { background: rgba(192,192,192,0.1) !important; border-color: rgba(192,192,192,0.5) !important; box-shadow: 0 0 28px rgba(192,192,192,0.22) !important; }
.lb-entry.rank-3:hover { background: rgba(205,127,50,0.1) !important; border-color: rgba(205,127,50,0.5) !important; box-shadow: 0 0 28px rgba(205,127,50,0.22) !important; }

/* ── Score glows in sidebar ──────────────────────────────────────── */
.lb-score.high { text-shadow: 0 0 10px rgba(0,255,136,0.7) !important; }
.lb-score.mid  { text-shadow: 0 0 10px rgba(255,204,0,0.7) !important; }
.lb-score.low  { text-shadow: 0 0 10px rgba(255,51,85,0.6) !important; }

/* ── PFP glow ring ────────────────────────────────────────────────── */
.lb-pfp {
  transition: box-shadow 0.25s, transform 0.2s;
  box-shadow: 0 0 8px rgba(255,77,0,0.3);
}
.lb-entry:hover .lb-pfp {
  box-shadow: 0 0 18px rgba(255,120,0,0.6), 0 0 6px rgba(255,200,0,0.4);
  transform: scale(1.08);
}

/* ── BloomScore Dropdown Panel ──────────────────────────────────── */
#bloom-score-dropdown {
  position: fixed;
  top: 45px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 9998;
  width: 240px;
  background: rgba(8,8,12,0.97);
  border: 1.5px solid rgba(255,77,0,0.5);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 24px rgba(255,77,0,0.12);
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#bloom-score-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#bsd-pfp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,77,0,0.6);
  margin-bottom: 4px;
}
#bsd-name {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #e8e8f0;
  letter-spacing: 1px;
  text-align: center;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#bsd-addr {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: #555;
  letter-spacing: 1px;
  margin-top: -2px;
}
#bsd-phlame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}
#bsd-phlame-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#bsd-phlame-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ff9a1f;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: phlame-glow 2.4s ease-in-out infinite;
}
#bsd-phlame-sep {
  color: rgba(255,140,0,0.3);
  font-size: 11px;
  margin: 0 1px;
}
#bsd-phlame-held-wrap,
#bsd-phlame-lp-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}
#bsd-phlame-lp-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,154,31,0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
#bsd-phlame-lp {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ff9a1f;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: phlame-glow 2.4s ease-in-out infinite;
}
@keyframes phlame-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(255,154,31,0.5), 0 0 12px rgba(255,100,0,0.2); }
  50%       { text-shadow: 0 0 10px rgba(255,154,31,0.9), 0 0 22px rgba(255,100,0,0.5); }
}
#lb-phlame-tooltip {
  position: fixed;
  display: none;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(20,12,4,0.97), rgba(10,6,2,0.99));
  border: 1px solid rgba(255,140,0,0.35);
  color: #ff9a1f;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255,122,0,0.2), 0 4px 14px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 9999;
}
#lb-phlame-tooltip img {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#lb-phlame-tooltip-text {
  white-space: pre;
  text-align: left;
}
#bsd-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 2px;
  gap: 2px;
}
#bsd-score-title {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  color: #ff8c00;
  text-transform: uppercase;
  opacity: 0.8;
}
#bsd-score {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
}
#bsd-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}
.bsd-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,0,0.3), transparent);
  margin: 6px 0 4px;
}
#bsd-bloom-link {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff8c00;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.15s;
}
#bsd-bloom-link:hover { opacity: 1; }

/* ── Navbar shimmer overlay ──────────────────────────────────────── */
.navbar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  background: rgba(255,255,255,0.22);
  animation: navbar-shimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ── SUMMARY/RADAR card title: shimmer + glitch + terminal cursor ───────── */
.summary-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #fff 0%, var(--accent2) 25%, #fff 50%, var(--accent) 75%, #fff 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: section-title-shimmer 5s linear infinite;
}
.summary-title::after {
  content: '_';
  display: inline-block;
  -webkit-text-fill-color: var(--accent2);
  color: var(--accent2);
  animation: section-title-cursor 1s steps(2, start) infinite;
}
.summary-title::before {
  content: 'BLOOM SCORE';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: bloom-label-glitch 6s ease-in-out infinite;
}

/* ── Bloom score card halo ───────────────────────────────────────── */
.bloom-card {
  transition: box-shadow 0.4s;
}
.bloom-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,77,0,0.0), rgba(255,140,0,0.12), rgba(255,77,0,0.0));
  pointer-events: none;
  animation: border-dance 4s ease infinite;
}
.bloom-score.high { animation: halo-green  2s ease-in-out infinite; border-radius: 4px; }
.bloom-score.mid  { animation: halo-yellow 2s ease-in-out infinite; border-radius: 4px; }
.bloom-score.low  { animation: halo-red    2s ease-in-out infinite; border-radius: 4px; }

/* ── Section card enhanced hover ─────────────────────────────────── */
.section-card {
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.2s, max-height 0.4s cubic-bezier(0.16,1,0.3,1) !important;
}
.section-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 40px rgba(255,77,0,0.6), 0 0 80px rgba(255,77,0,0.25), 0 8px 32px rgba(0,0,0,0.4) !important;
}
.section-head {
  position: relative;
  overflow: hidden;
}
.section-head::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.section-card:hover .section-head::after { left: 150%; }

/* ── BLOOM SCORE hero title: shimmer + glitch + terminal cursor ──────────── */
.bloom-label {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 25%, #fff 50%, var(--accent2) 75%, #fff 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bloom-label-shimmer 4s linear infinite;
}
.bloom-label::after {
  content: '_';
  display: inline-block;
  -webkit-text-fill-color: var(--accent2);
  color: var(--accent2);
  animation: section-title-cursor 1s steps(2, start) infinite;
}
.bloom-label::before {
  content: 'BLOOM SCORE';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: bloom-label-glitch 6s ease-in-out infinite;
}
@keyframes bloom-label-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes bloom-label-glitch {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  92.5% { opacity: 0.75; transform: translate(-2px, 1px); clip-path: inset(0 0 55% 0); }
  93.5% { opacity: 0.55; transform: translate(2px, -1px); clip-path: inset(45% 0 0 0); }
  94.5% { opacity: 0; transform: translate(0, 0); }
}

/* ── Section card titles: terminal/dev-style shimmer + blinking cursor ──── */
.section-title {
  background: linear-gradient(90deg, #fff 0%, var(--accent2) 25%, #fff 50%, var(--accent) 75%, #fff 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: section-title-shimmer 5s linear infinite;
}
.section-title::after {
  content: '_';
  display: inline-block;
  margin-left: 0;
  -webkit-text-fill-color: var(--accent2);
  color: var(--accent2);
  animation: section-title-cursor 1s steps(2, start) infinite;
}
@keyframes section-title-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes section-title-cursor {
  to { visibility: hidden; }
}

/* ── Search input glow ───────────────────────────────────────────── */
#address-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(255,77,0,0.22), inset 0 0 20px rgba(255,77,0,0.05) !important;
}
#score-btn:hover {
  box-shadow: 0 0 30px rgba(255,77,0,0.55), 0 6px 24px rgba(255,77,0,0.3) !important;
}

/* ── Leaderboard sidebar glow ────────────────────────────────────── */
#leaderboard-sidebar {
  box-shadow: 4px 0 32px rgba(255,40,0,0.08), inset -1px 0 0 rgba(255,77,0,0.12);
}

/* ── Summary card border animation ──────────────────────────────── */
.summary-card {
  transition: box-shadow 0.3s, transform 0.2s;
}
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255,77,0,0.5), 0 0 100px rgba(255,77,0,0.18);
}

/* ── Animate-in for entries ──────────────────────────────────────── */
.animate-in {
  animation: float-up 0.5s ease forwards;
}

    /* ── Main content ────────────────────────────────────────────────────── */
    .container {
      position: relative; z-index: 1;
      box-sizing: border-box;
      width: 100%;
      padding-left: calc(var(--sidebar-w) + 2vw);
      padding-right: calc(var(--sidebar-w) + 2vw);
      padding-top: clamp(24px, 3vh, 48px);
      padding-bottom: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      pointer-events: none;
    }
    .container > * {
      width: 100%;
      max-width: min(900px, calc(100vw - var(--sidebar-w) * 2 - 4vw));
      pointer-events: auto;
    }

    @media (max-width: 900px) {
      .layout { flex-direction: column; }
      #leaderboard-sidebar {
        display: block;
        width: 100%;
        min-width: 0;
        height: auto;
        position: static;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: none;
        padding-bottom: 12px;
        order: 2;
      }
      .container { order: 1; margin-left: 0; width: 100%; padding-left: clamp(12px, 2vw, 24px); padding-right: clamp(12px, 2vw, 24px); padding-top: calc(clamp(24px, 3vh, 48px) + 5vh); }
      .lb-banner { display: block; text-align: center; }
      .lb-header {
        border-top: 1px solid var(--border) !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 10px 16px !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 0 !important;
      }

      /* Mobile: horizontal scrollable list layout */
      .lb-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 0 10px 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
      }

      /* Mobile: entry displayed as vertical card */
      .lb-entry {
        flex-direction: column;
        align-items: center;
        min-width: 72px;
        max-width: 72px;
        padding: 8px 6px;
        text-align: center;
        gap: 4px;
        margin-bottom: 0;
      }
      .lb-score {
        margin: 0 auto;
      }
      .lb-info { min-width: 0; width: 100%; }
      .lb-name { font-size: 10px; text-align: center; }
      .lb-addr { display: none; }
      .lb-score { font-size: 11px; min-width: 0; text-align: center; }

      #leaderboard-sidebar.in-container { margin-top: 32px; border-top: 1px solid var(--border); }
    }

    header {
      text-align: center;
      margin-bottom: 25px;
      position: relative;
      z-index: 0;
      mix-blend-mode: screen;
    }
    header h1 img {
      width: 100%; max-width: 900px;
      display: block; margin: 0 auto;
      mix-blend-mode: screen;
    }
    .search-wrap { position: relative; z-index: 2; margin-bottom: 10px; margin-top: -30px;}
    .search-box { display: flex; gap: 10px; align-items: stretch; }
    .search-label {
      font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted);
      letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
    }
    #address-input {
      flex: 1; background: var(--surface); border: 1px solid var(--border);
      color: var(--text); font-family: var(--mono); font-size: clamp(10px, 0.85vw, 14px);
      padding: clamp(10px, 1vh, 16px) 18px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
      clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    }
    /* ── Input shimmer: light sliding along the border ── */
    @keyframes input-border-sweep {
      0%   { background-position: -200% center, 0 0; }
      100% { background-position:  200% center, 0 0; }
    }
    #address-input.input-blink {
      border-color: #ff6a00;
      box-shadow: 0 0 14px rgba(255,100,0,0.35), inset 0 0 8px rgba(255,120,0,0.08);
      background-image:
        linear-gradient(90deg, transparent 0%, transparent 35%, rgba(255,200,120,0.55) 50%, transparent 65%, transparent 100%),
        linear-gradient(to bottom, var(--surface), var(--surface));
      background-size: 200% 100%, 100% 100%;
      background-origin: border-box, padding-box;
      background-clip: border-box, padding-box;
      animation: input-border-sweep 4.8s linear infinite;
    }
    #address-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent), inset 0 0 20px rgba(255,77,0,0.05);
      background-image: none;
      animation: none;
    }
    /* ── Placeholder shimmer ── */
    @keyframes placeholder-sweep {
      0%   { background-position: -200% center; }
      100% { background-position:  200% center; }
    }
    #address-input::placeholder { color: #888899; }
    #address-input.input-blink::placeholder {
      background: linear-gradient(110deg, #666677 0%, #666677 30%, #ccccdd 50%, #666677 70%, #666677 100%);
      background-size: 200% auto;
      background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      animation: placeholder-sweep 4.8s linear infinite;
    }
    #score-btn {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #000; border: none; font-family: var(--display);
      font-size: var(--fs-xs); font-weight: 700; letter-spacing: 2px;
      padding: clamp(10px, 1vh, 16px) clamp(16px, 1.8vw, 28px); cursor: pointer; text-transform: uppercase;
      transition: all 0.2s;
      clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
      white-space: nowrap;
    }
    #score-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,77,0,0.4); }
    #score-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

    /* ── Protocol summary cards (A–E) — shown until first fetch ──────────── */

    @keyframes howto-fadein {
      from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
      to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
    }
    @keyframes howto-card-in {
      from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(5px); }
      to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
    }
    /* Scanline sweep */
    @keyframes howto-scan {
      0%   { transform: translateY(-120%) skewY(-2deg); opacity: 0; }
      10%  { opacity: 0.5; }
      90%  { opacity: 0.5; }
      100% { transform: translateY(400%)  skewY(-2deg); opacity: 0; }
    }
    /* Letter pulse glow */
    @keyframes howto-pulse {
      0%, 100% { opacity: 0.9; filter: drop-shadow(0 0 4px rgba(var(--card-rgb),0.5)); }
      50%       { opacity: 1;   filter: drop-shadow(0 0 14px rgba(var(--card-rgb),0.95)); }
    }
    /* Face slide transitions */
    @keyframes howto-face-slide-in {
      from { opacity: 0; transform: translateX(22px); filter: blur(4px); }
      to   { opacity: 1; transform: translateX(0);    filter: blur(0); }
    }
    @keyframes howto-face-slide-out {
      from { opacity: 1; transform: translateX(0);     filter: blur(0); }
      to   { opacity: 0; transform: translateX(-22px); filter: blur(4px); }
    }
    @keyframes howto-slide-in-down {
      from { opacity: 0; transform: translateY(-22px); filter: blur(4px); }
      to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
    }
    @keyframes howto-slide-out-down {
      from { opacity: 1; transform: translateY(0);    filter: blur(0); }
      to   { opacity: 0; transform: translateY(22px); filter: blur(4px); }
    }
    @keyframes howto-slide-in-up {
      from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
      to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
    }
    @keyframes howto-slide-out-up {
      from { opacity: 1; transform: translateY(0);     filter: blur(0); }
      to   { opacity: 0; transform: translateY(-22px); filter: blur(4px); }
    }
    @keyframes howto-slide-in-right {
      from { opacity: 0; transform: translateX(-22px); filter: blur(4px); }
      to   { opacity: 1; transform: translateX(0);     filter: blur(0); }
    }
    @keyframes howto-slide-out-right {
      from { opacity: 1; transform: translateX(0);    filter: blur(0); }
      to   { opacity: 0; transform: translateX(22px); filter: blur(4px); }
    }
    @keyframes howto-slide-in-left {
      from { opacity: 0; transform: translateX(22px); filter: blur(4px); }
      to   { opacity: 1; transform: translateX(0);    filter: blur(0); }
    }
    @keyframes howto-slide-out-left {
      from { opacity: 1; transform: translateX(0);     filter: blur(0); }
      to   { opacity: 0; transform: translateX(-22px); filter: blur(4px); }
    }
    /* Row slide-in (initial load only) */
    @keyframes howto-row-in {
      from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
      to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
    }
    /* Headline shimmer */
    @keyframes howto-shimmer {
      0%   { background-position: -200% center; }
      100% { background-position:  200% center; }
    }
    /* canvas bg */
    #howto-canvas {
      position: absolute; inset: 0; pointer-events: none; z-index: 0;
    }

    #howto-wrap {
      position: relative;
      margin-top: 28px;
      margin-bottom: 10px;
      animation: howto-fadein 0.85s cubic-bezier(0.22,1,0.36,1) both;
    }
    #howto-wrap.howto-hidden { display: none; }

    /* ── Header block ── */
    .howto-head {
      position: relative; z-index: 1;
      margin-bottom: 24px;
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .howto-headline {
      font-family: var(--display); font-weight: 900;
      font-size: clamp(16px, 2vw, 24px); letter-spacing: 4px; text-transform: uppercase;
      margin-bottom: 0; line-height: 1.15;
      background: linear-gradient(110deg,
        #ff8c00 0%, #ff4d00 20%, #ffffff 40%, #ff8c00 60%, #ff4d00 80%, #ff8c00 100%);
      background-size: 200% auto;
      background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      animation: howto-shimmer 4s linear infinite;
    }
    .howto-meta {
      display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    }
    .howto-twitter {
      display: inline-flex; align-items: center; gap: 5px;
      font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
      color: #ffbb00; text-decoration: none;
      border: 1px solid rgb(255, 174, 0); border-radius: 4px;
      padding: 4px 8px;
      background: rgba(29,155,240,0.06);
      transition: all 0.25s;
      position: relative; overflow: hidden;
    }
    .howto-twitter::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(90deg, transparent, rgba(29,155,240,0.15), transparent);
      transform: translateX(-100%);
      transition: transform 0.4s;
    }
    .howto-twitter:hover::before { transform: translateX(100%); }
    .howto-twitter:hover {
      border-color: #ffbb00; color: #fff;
      box-shadow: 0 0 16px rgba(29,155,240,0.35), 0 0 40px rgba(29,155,240,0.1);
    }
    .howto-twitter-icon { font-size: 11px; }

    /* ── Grid & cards ── */
    .howto-grid {
      position: relative; z-index: 1;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
    }
    .howto-card               { --card-clr: #ff4d00; --card-rgb: 255,77,0; }
    .howto-card:nth-child(2)  { --card-clr: #00e5ff; --card-rgb: 0,229,255; }
    .howto-card:nth-child(3)  { --card-clr: #00ff73; --card-rgb: 0,255,115; }
    .howto-card:nth-child(4)  { --card-clr: #9900ff; --card-rgb: 153,0,255; }
    .howto-card:nth-child(5)  { --card-clr: #ff8c00; --card-rgb: 255,140,0; }

    .howto-card:nth-child(1) { animation: howto-card-in 0.6s 0.10s cubic-bezier(0.22,1,0.36,1) both; }
    .howto-card:nth-child(2) { animation: howto-card-in 0.6s 0.20s cubic-bezier(0.22,1,0.36,1) both; }
    .howto-card:nth-child(3) { animation: howto-card-in 0.6s 0.30s cubic-bezier(0.22,1,0.36,1) both; }
    .howto-card:nth-child(4) { animation: howto-card-in 0.6s 0.40s cubic-bezier(0.22,1,0.36,1) both; }
    .howto-card:nth-child(5) { animation: howto-card-in 0.6s 0.50s cubic-bezier(0.22,1,0.36,1) both; }

    .howto-card {
      position: relative; overflow: hidden;
      background: linear-gradient(145deg, rgba(var(--card-rgb),0.04) 0%, var(--surface) 55%);
      border: 1px solid rgba(var(--card-rgb), 0.2);
      clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
      padding: 18px 16px 14px;
      cursor: pointer;
      display: flex; flex-direction: column;
      transition: border-color 0.3s, box-shadow 0.35s, transform 0.25s, background 0.3s;
      user-select: none;
    }
    /* scan line */
    .howto-card::before {
      content: '';
      position: absolute; left: 0; right: 0; height: 35%;
      background: linear-gradient(to bottom, transparent, rgba(var(--card-rgb),0.06), transparent);
      transform: translateY(-120%);
      animation: howto-scan 6s ease-in-out infinite;
      pointer-events: none; z-index: 0;
    }
    /* corner accent */
    .howto-card::after {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 12px; height: 12px;
      background: var(--card-clr); opacity: 0.45;
      clip-path: polygon(0 0, 100% 0, 100% 100%);
      transition: opacity 0.25s;
    }
    .howto-card:hover::after { opacity: 1; }
    .howto-card:hover {
      transform: translateY(-3px);
      border-color: rgba(var(--card-rgb), 0.65);
      background: linear-gradient(145deg, rgba(var(--card-rgb),0.08) 0%, var(--surface) 65%);
      box-shadow: 0 0 0 1px rgba(var(--card-rgb),0.15),
                  0 0 28px rgba(var(--card-rgb),0.2),
                  0 14px 36px rgba(0,0,0,0.5),
                  inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .howto-title {
      position: relative; z-index: 1;
      font-family: var(--display); font-weight: 900;
      font-size: clamp(13px, 1.1vw, 16px); letter-spacing: 1px; text-transform: uppercase;
      color: var(--card-clr); margin-bottom: 0; line-height: 1.15;
      animation: howto-pulse 3.5s ease-in-out infinite;
    }
    /* body — hidden by default, revealed on click */
    .howto-body {
      position: relative; z-index: 1;
      display: grid;
      grid-template-rows: 0fr;
      overflow: hidden;
      transition: grid-template-rows 0.38s cubic-bezier(0.16,1,0.3,1),
                  margin-top 0.38s cubic-bezier(0.16,1,0.3,1);
      margin-top: 0;
    }
    .howto-card.expanded .howto-body {
      grid-template-rows: 1fr;
      margin-top: 14px;
    }
    /* inner wrapper needed for the grid 0fr trick */
    .howto-body-inner {
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding-bottom: 0;
    }
    .howto-body-text {
      font-family: var(--body); font-weight: 300;
      font-size: clamp(9px, 0.75vw, 11px); line-height: 1.65; color: #ccc;
    }
    /* faces */
    .howto-face { display: none; flex-direction: column; gap: 6px; }
    .howto-face.active { display: flex; }
    .howto-face-label {
      font-family: var(--mono); font-weight: 700;
      font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--card-clr);
    }
    .howto-face-text {
      font-family: var(--body); font-weight: 300;
      font-size: clamp(9px, 0.75vw, 11px); line-height: 1.65; color: #ccc;
    }
    /* dots */
    .howto-dots {
      display: flex; gap: 5px; margin-top: 10px;
    }
    .howto-dot {
      width: 5px; height: 5px; border-radius: 50%;
      background: rgba(var(--card-rgb), 0.25);
      transition: background 0.25s, transform 0.25s;
    }
    .howto-dot.active { background: var(--card-clr); transform: scale(1.3); }
    /* tag-link — anchored at the bottom of the card */
    .howto-tag {
      position: absolute;
      bottom: 8px;
      left: 10px;
      right: 10px;
      white-space: normal;
      line-height: 1.5;
      font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--card-clr);
      border: 1px solid rgba(var(--card-rgb),0.4); border-radius: 2px;
      padding: 3px 6px;
      text-decoration: none;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
      z-index: 2;
    }
    .howto-card.expanded { height: 330px; }
    .howto-card.expanded .howto-tag { opacity: 0.65; pointer-events: auto; }
    .howto-card.expanded:hover .howto-tag { opacity: 1; }
    /* $PHLAME token highlight */
    .phlame-token {
      color: #ff8c00; font-weight: 700;
      text-shadow: 0 0 10px rgba(255,140,0,0.5);
    }
    /* Phlox link */
    .phlox-link {
      color: #ff8c00; font-weight: 500;
      transition: color 0.2s;
    }
    .phlox-link:hover { color: var(--card-clr); }

    @media (max-width: 1100px) {
      .howto-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 700px) {
      .howto-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 460px) {
      .howto-grid { grid-template-columns: 1fr; }
    }

    /* ── Doc Wide Cards — Premium ────────────────────────────────────────── */
    @property --hwc-angle {
      syntax: '<angle>';
      inherits: false;
      initial-value: 0deg;
    }
    @keyframes hwc-border-spin { to { --hwc-angle: 360deg; } }
    @keyframes hwc-shimmer-sweep {
      0%   { transform: translateX(-120%) skewX(-15deg); opacity: 0; }
      15%  { opacity: 1; }
      85%  { opacity: 1; }
      100% { transform: translateX(220%)  skewX(-15deg); opacity: 0; }
    }
    @keyframes hwc-glow-pulse {
      0%, 100% { box-shadow: 0 4px 28px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04); }
      50%       { box-shadow: 0 4px 28px rgba(0,0,0,0.7), 0 0 40px rgba(255,80,0,0.12), inset 0 1px 0 rgba(255,255,255,0.04); }
    }
    @keyframes hwc-expand {
      from { opacity: 0; transform: translateY(-10px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .howto-wide-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 10px;
      margin-bottom: 12px;
    }
    @media (max-width: 700px) {
      .howto-wide-row { grid-template-columns: 1fr; }
    }

    .howto-wide-card {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      cursor: pointer;
      padding: 28px 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      text-align: center;
      user-select: none;
      border-radius: 12px;
      background: linear-gradient(145deg, #0c0a0f 0%, #0f0c14 40%, #120e18 100%);
      border: 1px solid rgba(255,77,0,0.22);
      animation: hwc-glow-pulse 4s ease-in-out infinite;
      transition: border-color 0.3s, transform 0.2s;
    }
    .howto-wide-card::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: 13px;
      z-index: -1;
      background: conic-gradient(from var(--hwc-angle), transparent 0deg, rgba(255,77,0,0.9) 60deg, rgba(255,200,50,0.7) 120deg, rgba(255,77,0,0.9) 180deg, transparent 240deg);
      opacity: 0;
      transition: opacity 0.35s;
      animation: hwc-border-spin 3.5s linear infinite;
    }
    .howto-wide-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.055) 50%, transparent 100%);
      width: 40%;
      animation: hwc-shimmer-sweep 3.8s ease-in-out infinite;
      animation-delay: 0.8s;
      pointer-events: none;
    }
    .howto-wide-card:hover { border-color: transparent; transform: translateY(-2px); }
    .howto-wide-card:hover::before { opacity: 1; }
    .howto-wide-card:active { transform: translateY(0) scale(0.98); }

    .hwc-inner {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .hwc-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      filter: drop-shadow(0 0 10px rgba(255,100,0,0.5));
      transition: transform 0.3s, filter 0.3s;
    }
    .hwc-icon img {
      width: 130px;
      height: 130px;
      object-fit: contain;
      display: block;
    }
    .howto-wide-card:hover .hwc-icon {
      transform: scale(1.18) rotate(-4deg);
      filter: drop-shadow(0 0 18px rgba(255,140,0,0.9));
    }
    .hwc-title {
      font-family: var(--display);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 4px;
      text-transform: uppercase;
      background: linear-gradient(135deg, #fff 0%, #ff8c00 40%, #ffcc44 70%, #ff4d00 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      transition: letter-spacing 0.3s;
    }
    .howto-wide-card:hover .hwc-title { letter-spacing: 5px; }
    .hwc-sub {
      font-family: var(--mono);
      font-size: 8px;
      letter-spacing: 2px;
      color: rgba(255,140,0,0.32);
      text-transform: uppercase;
      transition: color 0.3s;
    }
    .howto-wide-card:hover .hwc-sub { color: rgba(255,180,0,0.6); }

    .hwc-corner {
      position: absolute;
      width: 10px; height: 10px;
      border-color: rgba(255,100,0,0.45);
      border-style: solid;
      transition: border-color 0.3s, width 0.3s, height 0.3s;
    }
    .hwc-corner-tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
    .hwc-corner-tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
    .hwc-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
    .hwc-corner-br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
    .howto-wide-card:hover .hwc-corner { border-color: rgba(255,180,0,0.9); width: 14px; height: 14px; }

    /* Doc content typography */
    .doc-content h1 {
      font-family: var(--display);
      font-size: clamp(14px, 1.2vw, 20px);
      font-weight: 700;
      color: #ff8c00;
      letter-spacing: 2px;
      margin: 0 0 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255,77,0,0.25);
    }
    .doc-content h2 {
      font-family: var(--display);
      font-size: clamp(11px, 0.95vw, 15px);
      font-weight: 700;
      color: #ff6a00;
      letter-spacing: 1.5px;
      margin: 24px 0 10px;
      text-transform: uppercase;
    }
    .doc-content h3 {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      color: #ffb347;
      letter-spacing: 1px;
      margin: 16px 0 8px;
      text-transform: uppercase;
    }
    .doc-content p {
      font-family: var(--body);
      font-size: 12.5px;
      line-height: 1.75;
      color: #c8c8d8;
      margin: 0 0 12px;
    }
    .doc-content ul, .doc-content ol {
      font-family: var(--body);
      font-size: 12px;
      line-height: 1.7;
      color: #b8b8c8;
      padding-left: 20px;
      margin: 0 0 12px;
    }
    .doc-content li { margin-bottom: 4px; }
    .doc-content strong { color: #ff8c00; font-weight: 700; }
    .doc-content em { color: #e0d8c0; font-style: italic; }
    .doc-content code {
      font-family: var(--mono);
      font-size: 10px;
      color: #00e5ff;
      background: rgba(0,229,255,0.07);
      border: 1px solid rgba(0,229,255,0.15);
      border-radius: 3px;
      padding: 1px 5px;
    }
    .doc-content pre {
      font-family: var(--mono);
      font-size: 10px;
      color: #00e5ff;
      background: rgba(0,0,0,0.5);
      border: 1px solid rgba(0,229,255,0.15);
      border-radius: 6px;
      padding: 14px 16px;
      margin: 12px 0;
      overflow-x: auto;
      line-height: 1.6;
      scrollbar-width: thin;
      scrollbar-color: var(--accent) transparent;
    }
    .doc-content pre code { background: none; border: none; padding: 0; }
    .doc-content table {
      width: 100%;
      border-collapse: collapse;
      font-family: var(--mono);
      font-size: 10px;
      margin: 12px 0;
    }
    .doc-content th {
      background: rgba(255,77,0,0.1);
      color: #ff8c00;
      padding: 7px 12px;
      text-align: left;
      letter-spacing: 1px;
      border: 1px solid rgba(255,77,0,0.2);
    }
    .doc-content td {
      padding: 6px 12px;
      border: 1px solid rgba(255,255,255,0.06);
      color: #b8b8c8;
    }
    .doc-content blockquote {
      border-left: 3px solid #ff4d00;
      padding: 10px 16px;
      margin: 12px 0;
      background: rgba(255,77,0,0.05);
      border-radius: 0 4px 4px 0;
    }
    .doc-content blockquote p { color: #e0d0b0; font-style: italic; margin: 0; }
    .doc-content a { color: #ff8c00; text-decoration: none; }
    .doc-content a:hover { text-decoration: underline; color: #ffb347; }
    .doc-content a.doc-toc-link { color: #c87820; }
    .doc-content a.doc-toc-link:hover { color: #ff8c00; }
    .doc-content hr { border: none; border-top: 1px solid rgba(255,77,0,0.2); margin: 20px 0; }

    /* ── Doc Panel — Premium ─────────────────────────────────────────────── */
    #doc-panel {
      display: none;
      margin-bottom: 24px;
      position: relative;
      isolation: isolate;
      border-radius: 14px;
      background: linear-gradient(160deg, #09060d 0%, #0d0a14 50%, #0a0810 100%);
      border: 1px solid rgba(255,77,0,0.2);
      box-shadow:
        0 0 0 1px rgba(255,40,0,0.07),
        0 8px 60px rgba(0,0,0,0.85),
        0 0 80px rgba(255,50,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.05);
      overflow: hidden;
      animation: hwc-expand 0.3s cubic-bezier(0.34,1.56,0.64,1);
    }
    #doc-panel.open { display: block; }
    #doc-panel::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: 15px;
      z-index: -1;
      background: conic-gradient(from var(--hwc-angle),
        rgba(255,77,0,0) 0deg, rgba(255,77,0,0.65) 40deg,
        rgba(255,200,50,0.45) 80deg, rgba(0,229,255,0.18) 130deg,
        rgba(255,77,0,0) 180deg, rgba(255,77,0,0) 360deg);
      animation: hwc-border-spin 6s linear infinite;
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      padding: 1px;
    }
    #doc-panel::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 140px;
      background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255,77,0,0.09), transparent 80%);
      pointer-events: none;
      z-index: 0;
    }
    .doc-panel-header {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 24px;
      background: linear-gradient(135deg, rgba(255,77,0,0.11) 0%, rgba(255,140,0,0.06) 50%, rgba(0,229,255,0.03) 100%);
      border-bottom: 1px solid rgba(255,77,0,0.15);
    }
    .doc-panel-header-left { display: flex; align-items: center; gap: 0; }
    .doc-panel-dots { display: flex; gap: 5px; margin-right: 14px; }
    .doc-panel-dots span { width: 8px; height: 8px; border-radius: 50%; }
    .doc-panel-dots span:nth-child(1) { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.7); }
    .doc-panel-dots span:nth-child(2) { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.7); }
    .doc-panel-dots span:nth-child(3) { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.7); }
    .doc-panel-title {
      font-family: var(--display);
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 6px;
      text-transform: uppercase;
      background: linear-gradient(135deg, #fff 0%, #ff8c00 45%, #ffcc44 75%, #ff4d00 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .doc-panel-tag {
      font-family: var(--mono);
      font-size: 8px;
      letter-spacing: 2px;
      color: rgba(0,229,255,0.4);
      text-transform: uppercase;
      border: 1px solid rgba(0,229,255,0.18);
      border-radius: 3px;
      padding: 2px 7px;
      margin-left: 14px;
    }
    .doc-panel-back {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 2.5px;
      color: #0a0608;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      padding: 7px 16px;
      text-transform: uppercase;
      background: linear-gradient(135deg, #ff6a00 0%, #ffb347 50%, #ff4d00 100%);
      box-shadow: 0 0 0 1px rgba(255,100,0,0.4), 0 4px 14px rgba(255,77,0,0.3);
      transition: transform 0.18s, box-shadow 0.18s, letter-spacing 0.18s;
    }
    .doc-panel-back::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
      width: 40%;
      animation: hwc-shimmer-sweep 2.5s ease-in-out infinite;
      pointer-events: none;
    }
    .doc-panel-back:hover { transform: translateX(-3px); box-shadow: 0 0 0 1px rgba(255,180,0,0.6), 0 6px 20px rgba(255,100,0,0.45); letter-spacing: 3px; }
    .doc-panel-back:active { transform: scale(0.96); }
    .doc-panel-header-right { display: flex; align-items: center; gap: 10px; }
    .doc-panel-download {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 2px;
      color: rgba(0,229,255,0.85);
      text-transform: uppercase;
      text-decoration: none;
      border: 1px solid rgba(0,229,255,0.3);
      border-radius: 6px;
      padding: 6px 12px;
      background: rgba(0,229,255,0.06);
      transition: background 0.18s, border-color 0.18s, color 0.18s;
      white-space: nowrap;
    }
    .doc-panel-download:hover {
      background: rgba(0,229,255,0.14);
      border-color: rgba(0,229,255,0.6);
      color: #00e5ff;
    }
    .doc-panel-download svg { flex-shrink: 0; }
    .doc-panel-body {
      position: relative;
      z-index: 2;
      padding: 32px 36px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,77,0,0.4) transparent;
    }

    #self-btn {
      background: transparent;
      color: var(--accent2);
      border: 1px solid rgba(255,140,0,0.45);
      font-family: var(--display);
      font-size: var(--fs-xs); font-weight: 700; letter-spacing: 2px;
      padding: clamp(10px, 1vh, 16px) clamp(10px, 1.2vw, 16px); cursor: pointer; text-transform: uppercase;
      transition: all 0.2s; white-space: nowrap;
      clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }
    #self-btn:hover { background: rgba(255,140,0,0.12); border-color: var(--accent2); color: #fff; }
    #self-btn:active { transform: translateY(1px); }
    /* ── SELF button shimmer: passing light sweep ── */
    @keyframes self-shimmer {
      0%   { background-position: -200% center; }
      100% { background-position:  200% center; }
    }
    .self-btn-text.blink-self {
      background: linear-gradient(110deg,
        #ff8c00 0%, #ff4d00 20%, #ffffff 40%, #ff8c00 60%, #ff4d00 80%, #ff8c00 100%);
      background-size: 200% auto;
      background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      animation: self-shimmer 4.8s linear infinite;
    }

    /* Picker */
    #picker-wrap { margin-bottom: 24px; display: none; }
    .picker-label { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent2); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
    .picker-list { display: flex; flex-direction: column; gap: 6px; }
    .picker-item {
      display: flex; align-items: center; gap: 12px;
      background: var(--surface); border: 1px solid var(--border);
      padding: 10px 14px; cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
    }
    .picker-item:hover { border-color: var(--accent); background: rgba(255,77,0,0.06); }
    .picker-pfp { width: clamp(28px, 2.5vw, 40px); height: clamp(28px, 2.5vw, 40px); border-radius: 50%; object-fit: cover; border: 1px solid var(--accent); flex-shrink: 0; background: var(--surface); }
    .picker-info { flex: 1; min-width: 0; }
    .picker-name { color: var(--text); font-family: var(--mono); font-size: clamp(10px, 0.85vw, 14px); }
    .picker-addr { color: #888899; font-family: var(--mono); font-size: var(--fs-xs); margin-top: 2px; word-break: break-all; }
    .picker-date { display: none; }

    /* Console */
    #console-wrap { margin-bottom: 32px; display: none; }
    .console-header { font-family: var(--mono); font-size: var(--fs-xs); color: #ffffff; letter-spacing: 3px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
    .console-dots span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
    .console-dots span:nth-child(1) { background: #ff5f57; }
    .console-dots span:nth-child(2) { background: #febc2e; }
    .console-dots span:nth-child(3) { background: #28c840; }
    #console-out { background: #040406; border: 1px solid var(--border); font-family: var(--mono); font-size: clamp(9px, 0.65vw, 13px); line-height: 1.7; padding: 10px 16px; overflow-y: hidden; }
    .log-info { color: #ffffff; }
    .log-ok   { color: var(--green); }
    .log-error{ color: var(--red); }
    .terminal-progress-wrap { margin: 8px 0 4px; display: flex; align-items: center; gap: 10px; }
    .terminal-progress-track { flex: 1; height: 3px; background: rgba(255,77,0,0.15); border-radius: 2px; position: relative; overflow: hidden; }
    .terminal-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; transition: width 0.5s cubic-bezier(0.16,1,0.3,1); width: 0%; }
    .terminal-progress-pct { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent2); letter-spacing: 1px; min-width: 36px; text-align: right; }

    /* Result */
    #result-wrap { display: none; }
    .bloom-card {
      background: var(--surface); border: 1px solid var(--border);
      padding: clamp(16px, 2vw, 28px); margin-bottom: clamp(16px, 1.8vw, 26px); text-align: center;
      margin-top: clamp(-20px, -2vw, -30px);
      position: relative; overflow: hidden;
      width: 100%; box-sizing: border-box;
      clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
      animation: halo-pulse 3.5s ease-in-out infinite;
    }
    .bloom-card::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% -30%, rgba(255,77,0,0.15), transparent 70%);
      pointer-events: none;
      z-index: 1;
    }
    .bloom-card-bg {
      position: absolute; inset: 0;
      background-size: cover; background-position: center;
      opacity: 0.13;
      pointer-events: none;
      z-index: 0;
      transition: opacity 0.6s;
    }
    .bloom-card > *:not(.bloom-card-bg) { position: relative; z-index: 2; }
    .bloom-label { font-family: var(--display); font-size: var(--fs-xs); letter-spacing: 4px; color: #ffffff; text-transform: uppercase; margin-bottom: clamp(10px, 1.2vw, 18px); }
    .bloom-score { font-family: var(--display); font-size: clamp(56px, 9vw, 96px); font-weight: 900; line-height: 1; margin-bottom: 8px; }
    .bloom-score.high  { color: var(--green);  text-shadow: 0 0 40px rgba(0,255,136,0.4); }
    .bloom-score.mid   { color: var(--yellow); text-shadow: 0 0 40px rgba(255,204,0,0.4); }
    .bloom-score.low   { color: var(--red);    text-shadow: 0 0 40px rgba(255,51,85,0.3); }
    .bloom-score.zero  { color: #ffffff; }
    .bloom-outof { font-family: var(--mono); font-size: clamp(10px, 0.9vw, 15px); color: #ffffff; margin-bottom: clamp(12px, 1.5vw, 22px); }
    .bloom-bar-wrap { max-width: clamp(260px, 30vw, 420px); margin: 0 auto clamp(12px, 1.5vw, 22px); height: 4px; background: var(--border); position: relative; }
    .bloom-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--green)); transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
    .bloom-status { font-family: var(--mono); font-size: var(--fs-xs); padding: 4px 12px; border: 1px solid; display: inline-block; letter-spacing: 2px; }
    .bloom-status.active   { color: var(--green);  border-color: var(--green);  background: rgba(0,255,136,0.05); }
    .bloom-status.warn30   { color: var(--yellow); border-color: var(--yellow); background: rgba(255,204,0,0.05); }
    .bloom-status.inactive { color: var(--red);    border-color: var(--red);    background: rgba(255,51,85,0.05); }

    .profile-identity { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.2vw, 18px); margin-bottom: clamp(16px, 2vw, 30px); }
    .profile-pfp { width: clamp(44px, 4.5vw, 68px); height: clamp(44px, 4.5vw, 68px); border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0; display: block; background: var(--surface); }
    .profile-identity .lb-pfp-frame.rank-frame-1::after {
  top: -40px;
  bottom: -40px;
  left: -45px;
  right: -25px;
  margin-left: 12px;
}
.profile-identity .lb-pfp-frame.rank-frame-2::after {
  top: -40px;
  bottom: -40px;
  left: -45px;
  right: -25px;
  margin-left: 12px;
}
.profile-identity .lb-pfp-frame.rank-frame-3::after {
  top: -40px;
  bottom: -40px;
  left: -45px;
  right: -25px;
  margin-left: 12px;
}
    .addr-bar { font-family: var(--display); font-size: clamp(13px, 1.4vw, 22px); font-weight: 700; color: var(--text); letter-spacing: 2px; line-height: 1.2; }
    .addr-sub { display: none; }

    .sections-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .sections-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
    @media (max-width: 700px) {
      .sections-grid { grid-template-columns: 1fr; width: 100%; }
      .sections-row2 { grid-template-columns: 1fr; width: 100%; padding-left: 0; }
    }

    .section-card {
      background: #0f0f16; border: 2px solid rgba(255,100,0,0.95); border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden;
      transition: border-color 0.2s, box-shadow 0.2s;
  scroll-margin-top: 100px;
}
    .section-card:hover {
      border-color: var(--accent);
      box-shadow: 0 0 32px rgba(255,77,0,0.55), 0 0 64px rgba(255,77,0,0.25);
    }
    .section-head { display: flex; align-items: center; background: linear-gradient(135deg, rgba(255,77,0,0.15) 0%, rgba(255, 136, 0, 0.712) 50%, rgba(255,215,0,0.35) 100%); border-bottom: 2px solid rgba(255,100,0,0.6); }
    .section-icon { width: clamp(36px, 3.8vw, 56px); height: clamp(36px, 3.8vw, 56px); min-width: clamp(36px, 3.8vw, 56px); display: flex; align-items: center; justify-content: center; margin: clamp(5px, 0.6vw, 10px) clamp(8px, 0.9vw, 14px) clamp(5px, 0.6vw, 10px) clamp(10px, 1.1vw, 16px); }
    .section-icon img { width: clamp(28px, 3vw, 48px); height: clamp(28px, 3vw, 48px); object-fit: contain; mix-blend-mode: lighten; }
    .section-title { font-family: var(--display); font-size: clamp(9px, 0.8vw, 14px); font-weight: 700; letter-spacing: 2px; color: #fff; text-transform: uppercase; flex: 1; }
    .section-title-link { color: #fff; text-decoration: none; transition: color 0.15s; }
    .section-title-link:hover { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }
    .section-scored { font-family: var(--mono); font-size: clamp(10px, 0.85vw, 14px); font-weight: bold; margin-right: clamp(8px, 1vw, 16px); }
    .section-scored.pos  { color: var(--green); }
    .section-scored.neg  { color: var(--red); }
    .section-scored.zero { color: #ffffff; }
    .section-body { padding: clamp(10px, 1.1vw, 16px) clamp(12px, 1.4vw, 20px); min-height: 100%;}
    .section-row { display: flex; align-items: baseline; padding: clamp(4px, 0.4vh, 8px) 0; font-size: clamp(9px, 0.7vw, 13px); border-bottom: 1px solid rgba(255,100,0,0.12); gap: 4px; }
    .section-row:last-child { border-bottom: none; }
    .row-label  { color: #ffffff; font-family: var(--mono); flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .row-label:has(.info-btn) { overflow: visible; }
    .row-detail { color: #ffffff; font-size: clamp(8px, 0.65vw, 12px); font-family: var(--mono); flex: 0 1 auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 8px; }
    .row-pts    { font-family: var(--mono); font-size: clamp(9px, 0.7vw, 13px); white-space: nowrap; width: clamp(38px, 4vw, 56px); min-width: clamp(38px, 4vw, 56px); text-align: right; }
    .row-pts.pos  { color: var(--green); }
    .row-pts.neg  { color: var(--red); }
    .row-pts.zero { color: #ffffff; }
    .mult-tag { font-family: var(--mono); font-size: var(--fs-xs); color: #ff7300; letter-spacing: 1px; margin-top: clamp(6px, 0.9vw, 14px); }
    .summary-card {
      background: #0f0f16; border: 3px solid rgba(255,100,0,0.95); border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden;
      transition: box-shadow 0.2s;
      margin-bottom: 0;
      width: 100%;
      box-sizing: border-box;
    }
    .summary-card:hover {
      box-shadow: 0 0 28px rgba(255,204,0,0.35), 0 0 60px rgba(255,204,0,0.15);
    }
    .summary-head { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,208,0,0.10) 0%, rgba(255, 136, 0, 0.486) 50%, rgba(255,208,0,0.10) 100%); border-bottom: 2px solid rgba(255,100,0,0.6); padding: 5px 5px; }
    .summary-icon { width: clamp(56px, 5.5vw, 88px); height: clamp(56px, 5.5vw, 88px); min-width: clamp(56px, 5.5vw, 88px); display: flex; align-items: center; justify-content: center; }
    .summary-icon img { width: clamp(48px, 4.8vw, 78px); height: clamp(48px, 4.8vw, 78px); object-fit: contain; }
    .summary-title { font-family: var(--display); font-size: clamp(12px, 1.2vw, 20px); font-weight: 700; letter-spacing: 3px; color: #fff; text-transform: uppercase; }
    .summary-body { padding: clamp(12px, 1.4vw, 22px) clamp(14px, 1.7vw, 26px) clamp(14px, 1.5vw, 22px); }

    .section-body {
      background-size: cover !important;
      background-position: center !important;
    }
    .summary-body {
      background-size: cover !important;
      background-position: center !important;
    }

    /* Radar chart */
    .radar-wrap { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.5vw, 36px); flex-wrap: wrap; width: 100%; }
    @media (max-width: 900px) { .radar-wrap { gap: 8px; } }
    .radar-svg-wrap { position: relative; flex-shrink: 0; }
    #radar-svg { display: block; overflow: visible; }
    .radar-legend { display: flex; flex-direction: column; gap: clamp(6px, 0.6vw, 12px); min-width: clamp(110px, 10vw, 160px); }
    .radar-legend-item { display: flex; align-items: center; gap: clamp(5px, 0.5vw, 10px); font-family: var(--mono); font-size: clamp(8px, 0.65vw, 12px); }
    .radar-legend-dot { width: clamp(6px, 0.55vw, 9px); height: clamp(6px, 0.55vw, 9px); border-radius: 50%; flex-shrink: 0; }
    .radar-legend-label { color: #aaa; }
    .radar-legend-val { margin-left: auto; font-weight: bold; }
    .radar-tip { display: none; }
    .radar-legend-label { position: relative; cursor: default; }

    .summary-totals { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(12px, 1.4vw, 20px); padding-top: clamp(10px, 1.2vw, 18px); border-top: 1px solid rgba(255,100,0,0.2); }
    .summary-total-item { text-align: center; }
    .summary-total-label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 2px; color: #666; text-transform: uppercase; margin-bottom: 4px; }
    .summary-total-val { font-family: var(--display); font-size: clamp(14px, 1.5vw, 22px); font-weight: 900; letter-spacing: 1px; }
    .summary-total-sub { font-family: var(--mono); font-size: var(--fs-xs); color: #555; margin-top: 2px; }

    .error-box { background: rgba(255,51,85,0.08); border: 1px solid rgba(255,51,85,0.3); padding: 20px 24px; font-family: var(--mono); font-size: clamp(10px, 0.85vw, 14px); color: var(--red); display: none; margin-bottom: 16px; }

    @media (max-width: 700px) {
      .summary-total-side { font-size: 14px !important; }
      .summary-total-status { font-size: 9px !important; }
      .summary-total-bloom { font-size: 36px !important; }
    }

    .collapse-btn {
      background: none; border: none; cursor: pointer;
      color: #555566; font-size: clamp(11px, 0.9vw, 16px); padding: 0 8px 0 4px;
      line-height: 1; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: color 0.15s, transform 0.3s;
    }
    .collapse-btn:hover { color: var(--accent2); }
    .section-card.collapsed .collapse-btn { transform: rotate(-90deg); }
    .section-body {
      overflow: hidden;
      transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
    }
    .section-card.collapsed .section-head { border-bottom: none; }
    .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,77,0,0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 8px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes scanIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .animate-in { animation: scanIn 0.4s ease forwards; }
    footer { text-align: center; margin-top: 20px; margin-bottom: 0; padding-bottom: 0; font-family: var(--mono); font-size: var(--fs-xs); color: #ffffff; letter-spacing: 2px; }
    .footer-short { display: none; }
    @media (max-width: 900px) {
      .footer-full  { display: none; }
      .footer-short { display: inline; }
    }


    .row-label-tip { display: none; }
    .row-label-has-tip { cursor: default; overflow: visible !important; }

    #global-tooltip {
      visibility: hidden; opacity: 0;
      position: fixed;
      background: #302e2de0; border: 1px solid rgba(255,140,0,0.4);
      color: #e8e8f0; font-family: var(--body); font-size: 11px; line-height: 1.5;
      padding: 8px 12px; border-radius: 6px; white-space: normal;
      width: 200px; z-index: 999999; pointer-events: none;
      transition: opacity 0.15s;
    }
    #global-tooltip.visible { visibility: visible; opacity: 1; }
    #global-tooltip.auto-width { width: max-content; max-width: 200px; white-space: nowrap; }

    .lb-banner img { transition: filter 0.2s; }
    .lb-banner img:hover { animation: scanline-flicker 6s ease-in-out infinite; }
    @keyframes scanline-flicker {
      0%   { filter: brightness(1.4) saturate(1); }
      50%  { filter: brightness(1.4) saturate(1.3); }
      100% { filter: brightness(1.4) saturate(1.1); }
    }
    .lb-banner-inner {
      position: relative;
      overflow: hidden;
      display: block;
      line-height: 0;
      background: transparent;
    }
    .lb-banner-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.25) 2px,
        rgba(0,0,0,0.25) 4px
      );
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }
    .lb-banner-inner:hover::after {
      opacity: 1;
      animation: scan-move 0.08s linear infinite;
    }
    @keyframes scan-move {
      from { background-position: 0 0; }
      to   { background-position: 0 4px; }
    }

    @media (min-width: 701px) {
  #back-to-top {
    right: auto !important;
    left: 50vw !important;
    transform: translateX(-50%) !important;
  }
}

    @media (max-width: 700px) {
  #back-to-top {
    top: auto !important;
    bottom: 5px !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

  /* ── Follow-Back Modal ───────────────────────────────────────────────── */
  #follow-back-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
  }
  #follow-back-overlay.open { display: flex; }
  #follow-back-modal {
    background: #0d0d12;
    border: 2px solid rgba(255,100,0,0.9);
    border-radius: 16px;
    width: min(380px, 95vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255,77,0,0.35);
    animation: modalIn 0.22s cubic-bezier(0.16,1,0.3,1) both;
    font-family: 'Nunito', sans-serif;
  }
  @keyframes modalIn {
    from { opacity:0; transform: scale(0.93) translateY(12px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
  }
  #follow-back-header {
    background: linear-gradient(135deg, rgba(255,77,0,0.18) 0%, rgba(255,136,0,0.65) 50%, rgba(255,215,0,0.28) 100%);
    border-bottom: 2px solid rgba(255,100,0,0.55);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  @keyframes fb-title-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
  }
  @keyframes fb-title-pulse {
    0%, 100% { text-shadow: 0 0 8px rgba(255,136,0,0.6), 0 0 24px rgba(255,77,0,0.3); }
    50%       { text-shadow: 0 0 18px rgba(255,200,0,0.9), 0 0 40px rgba(255,100,0,0.6), 0 0 60px rgba(255,77,0,0.2); }
  }
  @keyframes fb-arrow-bounce {
    0%, 100% { transform: translateX(0);   opacity: 1; }
    40%       { transform: translateX(4px); opacity: 0.7; }
    60%       { transform: translateX(-4px);opacity: 0.7; }
  }
  #follow-back-header-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(
      90deg,
      #ff4d00 0%,
      #ffaa00 25%,
      #ffe033 50%,
      #ffaa00 75%,
      #ff4d00 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
      fb-title-shimmer 2.8s linear infinite,
      fb-title-pulse   2.8s ease-in-out infinite;
  }
  #follow-back-header-title .fb-arrow {
    display: inline-block;
    -webkit-text-fill-color: #ffaa00;
    animation: fb-arrow-bounce 1.4s ease-in-out infinite;
    margin-right: 4px;
  }
  #follow-back-close {
    background: none;
    border: none;
    color: #888899;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
    position: absolute;
    right: 14px;
  }
  #follow-back-close:hover { color: var(--accent); }
  #follow-back-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #aaaacc;
    letter-spacing: 1px;
    padding: 8px 18px 0;
    text-transform: uppercase;
  }
  #follow-back-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  #follow-back-list::-webkit-scrollbar { width: 3px; }
  #follow-back-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
  .fb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    margin-bottom: 4px;
    user-select: none;
  }
  .fb-item:hover { background: rgba(255,77,0,0.07); border-color: rgba(255,77,0,0.22); }
  .fb-item.selected { background: rgba(0,255,136,0.07); border-color: rgba(0,255,136,0.35); }
  .fb-checkbox {
    width: 16px; height: 16px;
    border: 2px solid #555566;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    font-size: 11px;
  }
  .fb-item.selected .fb-checkbox { border-color: var(--green); background: rgba(0,255,136,0.18); color: var(--green); }
  .fb-pfp {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,77,0,0.3);
    flex-shrink: 0;
    background: #1a1a2e;
  }
  .fb-info { flex: 1; min-width: 0; }
  .fb-name { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fb-addr { font-family: 'Nunito', sans-serif; font-size: 9px; color: #777788; margin-top: 1px; }
  #follow-back-footer {
    border-top: 1px solid rgba(255,100,0,0.3);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #follow-back-select-all {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 700; color: #aaaacc;
    letter-spacing: 1px; cursor: pointer;
    user-select: none;
  }
  #follow-back-select-all .fb-checkbox { border-color: #444455; }
  #follow-back-select-all.all-selected .fb-checkbox { border-color: var(--green); background: rgba(0,255,136,0.18); color: var(--green); }
  #follow-back-calldata-wrap {
    display: none !important;
  }
  #follow-back-calldata-label {
    display: none !important;
  }
  #follow-back-calldata-text {
    display: none !important;
  }
  #follow-back-actions {
    display: flex; gap: 10px; align-items: center;
  }
  #follow-back-copy-btn {
    display: none !important;
  }
  #follow-back-execute-btn {
    font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 11px 20px; border-radius: 8px; cursor: pointer;
    border: none; transition: all 0.18s;
    display: none;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    flex: 1;
  }
  #follow-back-execute-btn:hover { box-shadow: 0 4px 18px rgba(255,77,0,0.4); transform: translateY(-1px); }
  #follow-back-execute-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
  #follow-back-status {
    font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-align: center; min-height: 16px;
  }
  #follow-back-loading {
    padding: 32px 0; text-align: center;
    font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 600; color: #555566; letter-spacing: 1px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
  }
  .fb-spinner {
    display: inline-block; width: 22px; height: 22px;
    border: 2px solid rgba(255,77,0,0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  #follow-back-empty {
    padding: 28px 0; text-align: center;
    font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 1px;
  }

  /* ── UP Connection ─────────────────────────────────────────────────── */
  .navbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  #connect-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #1a0f00;
    padding: 7px 18px;
    opacity: 1;
    background: linear-gradient(135deg, #ffc830 0%, #ffe680 22%, #ffffff 48%, #fff0a0 74%, #ffb800 100%);
    box-shadow: 0 0 0 0 rgba(255,184,0,0.55), 0 2px 8px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,255,255,0.18);
    transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, filter 0.2s ease, letter-spacing 0.2s ease;
    animation: garden-pulse 2.6s ease-in-out infinite;
    will-change: transform;
  }
  #connect-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--garden-spin), #ffb800, #fff3b0, #ff7a00, #ffe680, #ffb800);
    animation: garden-rotate 3.2s linear infinite;
    filter: saturate(1.3);
  }
  #connect-btn::after {
    content: '';
    position: absolute;
    top: -10%; bottom: -10%; left: 0;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: garden-sweep 2.8s ease-in-out infinite;
    animation-delay: 0.4s;
  }
  #connect-btn:hover {
    transform: translateY(-2px) scale(1.045);
    letter-spacing: 2.6px;
    filter: brightness(1.08) saturate(1.15);
    box-shadow: 0 0 0 3px rgba(255,184,0,0.18), 0 6px 18px rgba(255,122,0,0.40), inset 0 0 14px rgba(255,255,255,0.3);
  }
  #connect-btn:active { transform: translateY(0) scale(0.96); filter: brightness(0.97); transition-duration: 0.08s; }
  #connect-btn:focus-visible { outline: 2px solid #fff3b0; outline-offset: 3px; }
  #connect-btn .connect-l1, #connect-btn .connect-l2 { position: relative; z-index: 1; }
  @keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
  }
  #connected-dot {
    display: none;
    width: 10px; height: 10px; min-width: 10px; min-height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    flex-shrink: 0;
    animation: dot-blink 1.5s ease-in-out infinite;
  }
  #connected-dot.is-connected { display: inline-block; }
  #up-identity.is-connected { display: inline-flex !important; }
  @media (max-width: 1360px) {
    #up-identity.is-connected { display: none !important; }
    #up-identity { display: none !important; }
  }
  #disconnect-btn.btn-connected {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 2.2px !important;
    text-transform: uppercase !important;
    color: #1a0f00 !important;
    padding: 7px 18px !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #00ffaa 0%, #b9ffe3 22%, #ffffff 48%, #c9ffe9 74%, #00e09a 100%) !important;
    box-shadow: 0 0 0 0 rgba(0,255,136,0.45), 0 2px 8px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,255,255,0.16) !important;
    transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, filter 0.2s ease, letter-spacing 0.2s ease !important;
    animation: garden-pulse-leave 2.6s ease-in-out infinite, garden-pop 0.45s cubic-bezier(.34,1.56,.64,1) !important;
    will-change: transform;
  }
  #disconnect-btn.btn-connected::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--garden-spin), #00e09a, #d6fff0, #00ffaa, #b9ffe3, #00e09a);
    animation: garden-rotate 3.2s linear infinite;
    filter: saturate(1.3);
  }
  #disconnect-btn.btn-connected::after {
    content: '';
    position: absolute;
    top: -10%; bottom: -10%; left: 0;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: garden-sweep 2.8s ease-in-out infinite;
    animation-delay: 1.2s;
  }
  #disconnect-btn.btn-connected:hover {
    transform: translateY(-2px) scale(1.045) !important;
    letter-spacing: 2.6px !important;
    filter: brightness(1.08) saturate(1.15) !important;
    box-shadow: 0 0 0 3px rgba(0,255,136,0.18), 0 6px 18px rgba(0,255,136,0.40), inset 0 0 14px rgba(255,255,255,0.3) !important;
  }
  #disconnect-btn.btn-connected:active { transform: translateY(0) scale(0.96) !important; filter: brightness(0.97) !important; transition-duration: 0.08s !important; }
  #disconnect-btn.btn-connected:focus-visible { outline: 2px solid #d6fff0 !important; outline-offset: 3px !important; }
  #disconnect-btn .disconnect-label-short, #disconnect-btn .disconnect-label-full { position: relative; z-index: 1; }
  @media (prefers-reduced-motion: reduce) {
    #connect-btn, #connect-btn::before, #connect-btn::after,
    #disconnect-btn.btn-connected, #disconnect-btn.btn-connected::before, #disconnect-btn.btn-connected::after { animation: none !important; }
  }
  @media (max-width: 600px) {
    #up-name { display: none; }
    #up-pfp  { display: none; }
    #up-identity.is-connected { display: none !important; }
    #connect-btn {
      display: inline-flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      border-radius: 12px !important;
      padding: 4px 5px !important;
      font-size: 7px !important;
      letter-spacing: 0.5px !important;
      line-height: 1.2 !important;
      color: #1a0f00 !important;
      white-space: normal;
      width: 42px;
      flex-shrink: 0;
    }
    #connect-btn:hover { transform: none; letter-spacing: 0.5px !important; }
    #connect-btn .connect-l1, #connect-btn .connect-l2 { display: block; }
    #connect-btn.btn-hidden-mobile { display: none !important; }
    #connected-dot { display: none !important; }
    #connected-dot.is-connected {
      display: inline-block !important;
      visibility: visible !important;
      margin: 0 !important;
    }
    #disconnect-btn.btn-connected {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 12px !important;
      padding: 4px 7px !important;
      font-size: 7px !important;
      letter-spacing: 0.5px !important;
      white-space: nowrap;
      flex-shrink: 0;
    }
    #disconnect-btn.btn-connected:hover { transform: none !important; letter-spacing: 0.5px !important; }
    .disconnect-label-short { display: inline; }
    .disconnect-label-full { display: none; }
  }