:root {
  color-scheme: dark;
  --bg: #09070f;
  --ink: #fff7d6;
  --muted: #a79fcb;
  --panel: #171126;
  --panel-2: #24183b;
  --line: #000;
  --shadow: #000;
  --pink: #ff4fd8;
  --cyan: #32f2ff;
  --green: #6dff79;
  --red: #ff5c6d;
  --yellow: #ffe55c;
  --orange: #ff9f3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(255, 79, 216, 0.18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(50, 242, 255, 0.14), transparent 30%),
    var(--bg);
  background-size: 16px 16px, 16px 16px, auto, auto, auto;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  image-rendering: pixelated;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.45;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  gap: 0;
  margin-bottom: 18px;
  border: 4px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 79, 216, 0.08), transparent 42%),
    linear-gradient(135deg, #211238, #10192e 55%, #27153c);
  padding: 0;
  box-shadow: 8px 8px 0 var(--shadow), inset 0 0 0 3px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.showdown-main {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: 28px 34px;
}

.showdown-kicker {
  color: var(--orange);
}

.showdown-main h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--line);
}

.showdown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--line);
}

h1,
h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.subtitle {
  max-width: 780px;
  margin-bottom: 0;
  color: #eee7ff;
  font-size: 1rem;
  line-height: 1.45;
}

.subtitle strong {
  color: var(--yellow);
}

.status-panel {
  display: grid;
  justify-items: stretch;
  gap: 0;
  min-width: 0;
  border-left: 4px solid var(--line);
  background: rgba(9, 7, 20, 0.62);
}

.showdown-clock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid var(--line);
  padding: 16px 18px;
  color: #eee7ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.showdown-clock strong,
.showdown-clock #countdownHero {
  color: var(--yellow);
}

.score-list {
  display: grid;
  gap: 4px;
  background: var(--line);
}

.score-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  background: #120d20;
  padding: 15px 18px;
}

.score-row img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--shadow);
}

.score-row strong {
  color: var(--cyan);
  font-size: 1.05rem;
  text-shadow: 2px 2px 0 var(--line);
}

.score-row.vibhu strong {
  color: var(--pink);
}

.score-row span,
.score-number span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.score-number {
  display: grid;
  justify-items: end;
  min-width: 140px;
}

.score-number strong {
  font-size: 1.3rem;
}

.score-number strong.positive,
.score-number span.positive {
  color: var(--green);
}

.score-number strong.negative,
.score-number span.negative {
  color: var(--red);
}

.score-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 4px solid var(--line);
  padding: 14px 18px;
  background: var(--orange);
  color: #130b1f;
  font-weight: 900;
  text-transform: uppercase;
}

.score-footer button {
  min-height: 36px;
  background: var(--yellow);
}

.showdown-scoreboard .telegram-link {
  justify-content: center;
  margin: 14px 18px 18px;
}

.tabbar {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  border: 4px solid var(--line);
  background: var(--line);
  box-shadow: 6px 6px 0 #000;
}

.tab-button {
  flex: 1;
  border: 0;
  background: var(--panel-2);
  color: var(--muted);
  padding: 14px 18px;
  text-align: center;
}

.tab-button.active {
  background: var(--yellow);
  color: var(--line);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--line), 0 0 18px currentColor;
}

.status-dot.live {
  color: var(--green);
}

.status-dot.error {
  color: var(--red);
}

button {
  min-height: 42px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--yellow);
  color: #130b1f;
  padding: 0 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.retro-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 3px solid var(--line);
  background: var(--cyan);
  color: #061018;
  padding: 0 12px;
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.retro-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 3px solid var(--line);
  background: #29a9eb;
  color: #061018;
  padding: 0 12px;
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.telegram-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.telegram-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--line);
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: #090714;
  color: var(--ink);
  padding: 0 10px;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.06);
}

input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--green);
  box-shadow: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.leaderboard,
.competitor-grid,
.panel-grid {
  display: grid;
  gap: 16px;
}

.leaderboard {
  grid-template-columns: minmax(0, 2fr) minmax(170px, 0.8fr) minmax(190px, 0.8fr);
  margin-bottom: 16px;
}

.leader-card,
.leader-metric,
.competitor-card,
.panel {
  border: 4px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--shadow);
}

.leader-card,
.leader-metric {
  padding: 18px;
}

.leader-card {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.22), var(--panel) 55%);
}

.leader-name,
.leader-metric > div {
  color: var(--cyan);
  font-size: clamp(1.25rem, 2.8vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--line);
}

.competitor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.copy-panel {
  margin-bottom: 0;
}

.copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 4px;
  background: var(--line);
  overflow-x: hidden;
}

.copy-form,
.copy-status {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  background: #120d20;
  padding: 18px;
  overflow-wrap: anywhere;
}

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

.inverse-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inverse-hero {
  grid-column: 1 / -1;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 229, 92, 0.14), rgba(50, 242, 255, 0.08)),
    #090714;
  padding: 14px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.inverse-hero h3 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 1.1rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--line);
}

.inverse-hero p:last-child {
  margin-bottom: 0;
  color: #eee7ff;
  line-height: 1.45;
}

.copy-alerts-label,
.copy-alerts,
.wallet-search {
  grid-column: 1 / -1;
}

.wallet-search {
  display: grid;
  gap: 10px;
  border: 3px solid var(--line);
  background: #090714;
  padding: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.wallet-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.35fr) minmax(130px, 0.35fr);
  gap: 10px;
  align-items: end;
}

.wallet-search-row:nth-child(2) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.wallet-search-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.wallet-search-actions button {
  min-width: 82px;
  padding-inline: 10px;
}

.wallet-search-results {
  display: grid;
  gap: 8px;
  color: #eee7ff;
  min-height: 38px;
}

.wallet-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.wallet-search-result > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wallet-search-result strong {
  color: var(--green);
  text-shadow: 2px 2px 0 var(--line);
}

.wallet-search-result span {
  overflow-wrap: anywhere;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkline span {
  color: var(--ink);
  line-height: 1.35;
  text-shadow: none;
}

.copy-value,
.copy-summary,
.copy-candidate,
.copy-alerts,
.wallet-positions {
  border: 3px solid var(--line);
  background: #090714;
  color: var(--ink);
  padding: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.copy-summary {
  display: grid;
  gap: 6px;
}

.copy-summary strong {
  color: var(--green);
  font-size: 1.1rem;
  text-shadow: 2px 2px 0 var(--line);
}

.copy-summary span {
  color: #eee7ff;
}

.copy-candidate {
  display: grid;
  gap: 7px;
}

.copy-candidate strong {
  color: var(--green);
  font-size: 1.1rem;
  text-shadow: 2px 2px 0 var(--line);
}

.copy-candidate span {
  color: #eee7ff;
}

.copy-alerts {
  display: grid;
  gap: 10px;
}

.copy-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.copy-alert-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.copy-alert:last-child {
  border-bottom: 0;
}

.copy-alert-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.copy-alert strong,
.copy-alert-title strong {
  text-shadow: 2px 2px 0 var(--line);
}

.copy-alert.open strong {
  color: var(--green);
}

.inverse-alert .copy-alert-title strong {
  color: var(--cyan);
}

.copy-alert.close strong {
  color: var(--red);
}

.copy-alert p,
.copy-alert span {
  color: #eee7ff;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.copy-alert p {
  margin: 0;
}

.copy-decision-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.85fr) minmax(0, 1fr);
  gap: 6px 10px;
  border: 2px solid rgba(255, 225, 76, 0.2);
  background: #090714;
  padding: 10px;
}

.copy-decision-grid span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.copy-decision-grid strong {
  color: var(--ink);
  text-align: right;
  font-size: 0.78rem;
  text-shadow: none;
}

.copy-condition {
  color: #eee7ff;
  font-weight: 900;
}

.copy-alert .risk-warning {
  color: var(--red);
  font-weight: 900;
}

.copy-alert > button {
  min-width: 92px;
  padding-inline: 10px;
  white-space: nowrap;
}

.copy-alert button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
  opacity: 0.65;
  transform: none;
}

.onchain-panel {
  margin-top: 16px;
}

.leaderboard-note {
  border-bottom: 4px solid var(--line);
  background: #120d20;
  color: #eee7ff;
  padding: 14px 18px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.wallet-leaderboard {
  display: grid;
  gap: 4px;
  background: var(--line);
}

.leaderboard-summary {
  background: #120d20;
  color: var(--cyan);
  padding: 12px 18px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.wallet-rank {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(150px, auto) minmax(150px, auto) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
  background: #120d20;
  padding: 16px 18px;
}

.podium-rank {
  background:
    linear-gradient(90deg, rgba(255, 229, 92, 0.16), rgba(50, 242, 255, 0.08)),
    #120d20;
}

.podium-1 {
  box-shadow: inset 7px 0 0 var(--yellow);
}

.podium-2 {
  box-shadow: inset 7px 0 0 var(--cyan);
}

.podium-3 {
  box-shadow: inset 7px 0 0 var(--green);
}

.chart-panel {
  margin-top: 16px;
}

.challenge-chart {
  display: grid;
  gap: 4px;
  background: var(--line);
}

.volume-chart {
  position: relative;
  display: block;
  overflow-x: auto;
  background: var(--line);
  padding: 4px;
}

.activity-chart-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  background: #120d20;
  border-top: 4px solid var(--line);
  color: var(--muted);
  padding: 12px 18px;
  text-transform: uppercase;
}

.activity-chart-title strong {
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--line);
}

.chart-range-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chart-range-controls button {
  min-height: 28px;
  padding: 6px 10px;
  background: #0b0714;
  color: var(--muted);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 #000;
  font-size: 0.66rem;
}

.chart-range-controls button.active,
.chart-range-controls button:hover {
  background: var(--yellow);
  color: var(--line);
}

.volume-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  min-height: 320px;
  background: #120d20;
}

.volume-svg-bar {
  fill: var(--cyan);
  stroke: var(--line);
  stroke-width: 2;
  filter: drop-shadow(3px 3px 0 #000);
}

.volume-svg-bar:hover {
  fill: var(--green);
}

.activity-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 180px;
  max-width: 240px;
  border: 3px solid var(--line);
  background: var(--yellow);
  color: #130b1f;
  padding: 9px 11px;
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(2px, 2px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.activity-tooltip.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.wallet-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  filter: drop-shadow(3px 3px 0 #000);
  vector-effect: non-scaling-stroke;
}

.wallet-point {
  fill: var(--yellow);
  stroke: var(--line);
  stroke-width: 3;
}

.wallet-point:hover {
  fill: var(--green);
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: var(--line);
}

.chart-summary div {
  display: grid;
  gap: 6px;
  background: #120d20;
  padding: 14px 18px;
}

.chart-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.chart-summary strong {
  color: var(--cyan);
  font-size: 1.15rem;
}

.pnl-chart {
  display: block;
  width: 100%;
  min-height: 300px;
  background: #120d20;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.chart-zero {
  stroke: var(--yellow);
  stroke-dasharray: 6 6;
  stroke-width: 2;
}

.chart-label,
.chart-name {
  fill: #eee7ff;
  font-family: var(--font);
  font-size: 13px;
}

.bets-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 4px;
  background: var(--line);
}

.bet-slip,
.bet-totals {
  display: grid;
  gap: 12px;
  background: #120d20;
  padding: 18px;
}

.bet-rules {
  display: grid;
  gap: 8px;
  border: 3px solid var(--line);
  background: #090613;
  padding: 12px;
  color: #eee7ff;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bet-rules strong {
  color: var(--yellow);
}

.bet-slip label {
  display: grid;
  gap: 8px;
  color: var(--yellow);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.bet-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bet-total-card {
  display: grid;
  gap: 6px;
}

.bet-total-card strong {
  color: var(--green);
  font-size: 1.15rem;
}

.rank-number {
  color: var(--yellow);
  font-size: 1.12rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 var(--line);
}

.podium-symbol {
  display: block;
  margin-bottom: 4px;
  color: var(--yellow);
  font-size: 1.8rem;
  line-height: 1;
  text-shadow: none;
}

.podium-1 .podium-symbol {
  color: var(--yellow);
}

.podium-2 .podium-symbol {
  color: var(--cyan);
}

.podium-3 .podium-symbol {
  color: var(--green);
}

.rank-wallet,
.rank-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-wallet {
  gap: 8px;
}

.rank-wallet-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.rank-wallet-title strong {
  color: var(--green);
  text-shadow: 2px 2px 0 var(--line);
}

.rank-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 3px solid var(--line);
  background: #090714;
  box-shadow: 3px 3px 0 #000;
  object-fit: cover;
}

.rank-avatar.placeholder {
  display: inline-grid;
  place-items: center;
  color: var(--yellow);
  font-weight: 900;
}

.wallet-badge,
.market-chip,
.rank-wallet-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 2px solid rgba(0, 0, 0, 0.9);
  background: #090714;
  color: #eee7ff;
  padding: 2px 7px;
  box-shadow: 2px 2px 0 #000;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-badge {
  background: var(--yellow);
  color: #130b1f;
  text-decoration: none;
}

.x-badge {
  background: var(--cyan);
}

.x-badge:hover {
  background: var(--green);
  color: #07130a;
  transform: translate(1px, 1px);
}

.wallet-address,
.rank-wallet-last {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.rank-wallet-stats,
.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.rank-wallet .market-list {
  max-width: min(100%, 760px);
}

.rank-wallet-stats span {
  background: rgba(255, 255, 255, 0.045);
}

.market-chip {
  color: var(--cyan);
}

.rank-metric {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.rank-metric span {
  color: #eee7ff;
  font-size: 0.84rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.negative-rank .rank-wallet strong {
  color: var(--red);
}

.wallet-positions {
  display: grid;
  gap: 10px;
}

.wallet-position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}

.wallet-position:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wallet-position div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wallet-position strong {
  color: var(--cyan);
  text-shadow: 2px 2px 0 var(--line);
}

.wallet-position span {
  color: #eee7ff;
  font-size: 0.82rem;
}

.wallet-position span.positive,
.wallet-position .positive {
  color: var(--green);
}

.wallet-position span.negative,
.wallet-position .negative {
  color: var(--red);
}

.wallet-position button {
  min-height: 34px;
  padding: 0 10px;
}

.profile-card {
  height: calc(100dvh - 26px);
  max-height: calc(100vh - 26px);
}

.profile-status-panel {
  flex: 1 1 auto;
  min-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: var(--cyan) #090714;
  scrollbar-width: thin;
}

.profile-edit-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-edit-row[hidden],
.profile-status-panel > .label[hidden] {
  display: none;
}

.profile-hero-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-hero-row img,
.profile-hero-row > span {
  width: 54px;
  height: 54px;
  border: 3px solid var(--line);
  background: var(--cyan);
  box-shadow: 3px 3px 0 #000;
  color: #07130a;
  font-size: 1.5rem;
  font-weight: 900;
}

.profile-hero-row img {
  object-fit: cover;
}

.profile-hero-row > span {
  display: grid;
  place-items: center;
}

.profile-hero-row div,
.profile-section {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-hero-row span,
.profile-section span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.profile-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-metric strong,
.profile-section > strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.profile-trade-list,
.profile-day-list,
.profile-position-list {
  display: grid;
  gap: 6px;
}

.profile-trade-row,
.profile-day-row {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(72px, 0.8fr) minmax(72px, 0.8fr) minmax(86px, 0.8fr);
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #eee7ff;
  padding: 7px 0;
  text-decoration: none;
}

.profile-trade-row:hover {
  color: var(--cyan);
}

.profile-position-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) repeat(6, minmax(66px, 0.8fr));
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #eee7ff;
  padding: 7px 0;
}

.copy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.copy-explainer {
  display: grid;
  gap: 10px;
  border: 3px solid var(--line);
  background: #090714;
  padding: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.copy-explainer p {
  margin: 0;
  color: #eee7ff;
  font-size: 0.85rem;
  line-height: 1.45;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 8px 14px 18px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 4px
    ),
    rgba(2, 1, 6, 0.78);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: calc(100dvh - 26px);
  max-height: calc(100vh - 26px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: calc(100vw - 28px);
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan) #090714;
  scrollbar-width: thin;
}

.modal-card > .panel-heading {
  flex: 0 0 auto;
}

.modal-card > .copy-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan) #090714;
  scrollbar-width: thin;
}

.modal-card > .profile-status-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.modal::-webkit-scrollbar,
.modal-card::-webkit-scrollbar,
.modal-card > .copy-grid::-webkit-scrollbar,
.modal-card > .profile-status-panel::-webkit-scrollbar {
  width: 14px;
}

.modal::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track,
.modal-card > .copy-grid::-webkit-scrollbar-track,
.modal-card > .profile-status-panel::-webkit-scrollbar-track {
  background: #090714;
  border-left: 3px solid var(--line);
}

.modal::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb,
.modal-card > .copy-grid::-webkit-scrollbar-thumb,
.modal-card > .profile-status-panel::-webkit-scrollbar-thumb {
  border: 3px solid var(--line);
  background: var(--cyan);
}

.competitor-card {
  overflow: hidden;
}

.competitor-card:nth-child(1) .nick {
  color: var(--cyan);
}

.competitor-card:nth-child(2) .nick {
  color: var(--pink);
}

.competitor-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 4px solid var(--line);
  background:
    linear-gradient(90deg, rgba(50, 242, 255, 0.1), rgba(255, 79, 216, 0.08)),
    var(--panel-2);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  display: block;
  width: 64px;
  height: 64px;
  border: 4px solid var(--line);
  background: #05030a;
  box-shadow: 4px 4px 0 var(--shadow);
  object-fit: cover;
  image-rendering: pixelated;
}

.nick {
  margin: 5px 0;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--line);
}

.wallet {
  max-width: 340px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnl {
  text-align: right;
}

.pnl-value {
  font-size: clamp(1.8rem, 3vw, 3.35rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--line);
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: var(--line);
  border-bottom: 4px solid var(--line);
}

.metric {
  min-width: 0;
  background: #120d20;
  padding: 14px;
}

.metric strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sparkline {
  display: block;
  width: 100%;
  height: 78px;
  padding: 12px 16px 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #0b0813;
  background-size: 12px 12px;
}

.panel-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  margin-bottom: 16px;
}

.panel {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 4px solid var(--line);
  background: var(--panel-2);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 3px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #0d0918;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: #f0eaff;
  font-size: 0.88rem;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.035);
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--cyan);
  color: #061018;
  padding: 0 8px;
  box-shadow: 3px 3px 0 var(--shadow);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.empty,
.error-box {
  padding: 18px;
  color: var(--muted);
}

.error-box {
  color: #ffd6da;
}

footer {
  padding: 18px 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .topbar,
  .competitor-top {
    display: grid;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .pnl {
    justify-items: start;
    text-align: left;
  }

  .status-panel {
    border-left: 0;
    border-top: 4px solid var(--line);
  }

  .showdown-main {
    padding: 22px;
  }

  .score-footer,
  .score-row {
    grid-template-columns: 1fr;
  }

  .score-row {
    justify-items: start;
  }

  .score-number {
    justify-items: start;
    min-width: 0;
  }

  .leaderboard,
  .competitor-grid,
  .panel-grid,
  .bets-grid,
  .bet-totals,
  .chart-summary,
  .copy-grid {
    grid-template-columns: 1fr;
  }

  .inverse-form {
    grid-template-columns: 1fr;
  }

  .wallet-rank {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wallet-rank .retro-link,
  .rank-metric {
    grid-column: 2;
    text-align: left;
  }

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

/* Solana-native palette pass */
:root {
  --bg: #05070c;
  --panel: #0d111a;
  --panel-2: #111827;
  --ink: #f5f7fb;
  --muted: #8995a8;
  --line: rgba(153, 69, 255, 0.16);
  --orange: #14f195;
  --cyan: #03e1ff;
  --green: #14f195;
  --red: #ff4d7d;
  --yellow: #9945ff;
  --blue: #9945ff;
  --sol-purple: #9945ff;
  --sol-green: #14f195;
  --sol-cyan: #03e1ff;
  --soft-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(153, 69, 255, 0.13), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(20, 241, 149, 0.09), transparent 30%),
    linear-gradient(180deg, #070912 0%, #05070c 58%, #040609 100%);
}

.topbar {
  background:
    linear-gradient(135deg, rgba(153, 69, 255, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(20, 241, 149, 0.08), transparent 38%),
    #0d111a;
  border-color: rgba(153, 69, 255, 0.22);
}

.showdown-kicker {
  color: #94a3b8;
}

.showdown-kicker::first-letter {
  color: var(--sol-green);
}

.subtitle strong:last-child,
.score-row.vibhu strong {
  color: var(--sol-purple);
}

#openCopyModal,
#openClaimProfile {
  background: linear-gradient(90deg, var(--sol-green), #8cffd2);
  border-color: transparent;
  color: #04110b;
}

#openCopyModal:hover,
#openClaimProfile:hover {
  background: linear-gradient(90deg, #36f4a7, #a5ffdf);
  border-color: transparent;
}

#openInverseModal {
  border-color: rgba(153, 69, 255, 0.65);
  color: #d8c4ff;
  box-shadow: 0 0 32px rgba(153, 69, 255, 0.18);
}

#openInverseModal:hover {
  background: rgba(153, 69, 255, 0.1);
}

.score-row img {
  border-color: rgba(153, 69, 255, 0.8);
}

.score-row.drew img {
  border-color: var(--sol-green);
}

.score-row strong,
.score-row.vibhu strong {
  color: var(--sol-green);
}

.score-row.vibhu strong {
  color: #c4a2ff;
}

.status-dot,
.rank-metric.positive,
.positive,
.pnl.positive,
.score-number strong.positive,
.score-number span.positive {
  color: var(--sol-green);
}

.tab-button.active {
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.24), rgba(20, 241, 149, 0.1));
  color: #ffffff;
}

.panel,
.leader-card,
.leader-metric,
.competitor-card,
.modal-card {
  background: #0d111a;
  border-color: rgba(153, 69, 255, 0.16);
}

.panel-heading,
.competitor-top {
  background: #0f1520;
  border-color: rgba(153, 69, 255, 0.15);
}

.wallet-rank {
  background: #0b1018;
  border-top-color: rgba(153, 69, 255, 0.13);
}

.wallet-rank:hover {
  background: #101724;
}

.wallet-rank.podium-1 {
  box-shadow: inset 3px 0 0 var(--sol-green);
}

.wallet-rank.podium-2 {
  box-shadow: inset 3px 0 0 var(--sol-purple);
}

.wallet-rank.podium-3 {
  box-shadow: inset 3px 0 0 var(--sol-cyan);
}

.podium-symbol,
.podium-1 .podium-symbol {
  background: rgba(20, 241, 149, 0.13);
  color: var(--sol-green);
}

.podium-2 .podium-symbol {
  background: rgba(153, 69, 255, 0.16);
  color: #c4a2ff;
}

.podium-3 .podium-symbol {
  background: rgba(3, 225, 255, 0.12);
  color: var(--sol-cyan);
}

.wallet-badge,
.x-badge {
  background: rgba(153, 69, 255, 0.12);
  border-color: rgba(153, 69, 255, 0.26);
  color: #d8c4ff;
}

.market-chip {
  background: #0f1520;
  border-color: rgba(153, 69, 255, 0.16);
}

.wallet-rank > .retro-link,
.telegram-link {
  background: rgba(20, 241, 149, 0.07);
  border-color: rgba(20, 241, 149, 0.22);
  color: #a6ffd9;
}

.wallet-rank > .retro-link:hover,
.telegram-link:hover {
  background: rgba(20, 241, 149, 0.12);
}

.competitor-card:nth-child(1),
.competitor-card:nth-child(2) {
  border-color: rgba(153, 69, 255, 0.24);
  box-shadow: none;
}

.competitor-card:nth-child(2) {
  border-color: rgba(20, 241, 149, 0.32);
  box-shadow: 0 0 48px rgba(20, 241, 149, 0.08);
}

.volume-svg-bar {
  fill: var(--sol-purple);
}

.wallet-line,
.wallet-point {
  stroke: var(--sol-green);
}

.wallet-point {
  fill: var(--sol-green);
}

@media (max-width: 720px) {
  .copy-form {
    grid-template-columns: 1fr;
  }

  .wallet-search-row,
  .wallet-search-row:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .wallet-search-actions {
    flex-wrap: wrap;
  }

  .copy-alert,
  .wallet-position {
    grid-template-columns: 1fr;
  }
}

/* Pro trading app layout pass */
:root {
  --bg: #0a0f1a;
  --panel: #101722;
  --panel-2: #131c2a;
  --ink: #f4f7fb;
  --muted: #8491a5;
  --line: rgba(148, 163, 184, 0.13);
  --blue: #4f7cff;
  --green: #1fbf75;
  --red: #f05252;
}

body {
  background: #0a0f1a;
}

.shell {
  width: min(1320px, 100%);
  padding: 18px;
}

.topbar {
  min-height: 214px;
  border-radius: 12px;
  background: #101722;
}

.showdown-main {
  padding: 28px 32px;
}

.showdown-main h1 {
  font-size: clamp(2.05rem, 3.1vw, 3.2rem);
  font-weight: 740;
}

.showdown-kicker {
  color: #8fa0bc;
}

.subtitle {
  max-width: 620px;
}

.status-panel {
  background: #0f1622;
}

.score-row {
  grid-template-columns: 40px minmax(0, 1fr) minmax(120px, auto);
  padding: 14px 16px;
}

.score-row img {
  width: 40px;
  height: 40px;
}

.score-footer {
  padding: 13px 16px;
}

.tabbar {
  border-radius: 8px;
  margin: 14px 0 12px;
  background: #0f1622;
}

.tab-button {
  min-height: 36px;
  border-radius: 6px;
}

.tab-button.active {
  background: #1d2738;
  color: #ffffff;
}

.panel,
.leader-card,
.leader-metric,
.competitor-card {
  border-radius: 10px;
  background: #101722;
  box-shadow: none;
}

.panel-heading {
  min-height: 72px;
  padding: 18px 20px;
  background: #101722;
}

.onchain-panel {
  margin-top: 12px;
}

.wallet-leaderboard {
  border-top: 1px solid var(--line);
}

.wallet-rank {
  grid-template-columns: 44px minmax(360px, 1fr) minmax(132px, auto) minmax(132px, auto) 72px;
  min-height: 94px;
  padding: 16px 20px;
  background: #101722;
  border-top: 1px solid var(--line);
}

.wallet-rank:first-child {
  border-top: 0;
}

.wallet-rank:hover {
  background: #131c2a;
}

.rank-number {
  justify-content: flex-start;
  color: #7d8ba1;
}

.podium-symbol {
  width: 26px;
  height: 26px;
  background: #1b2638;
}

.rank-wallet-title {
  gap: 9px;
}

.rank-wallet-title strong {
  color: #f4f7fb;
  font-size: 1rem;
}

.rank-avatar,
.rank-avatar.placeholder {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.wallet-address {
  display: none;
}

.rank-wallet-stats {
  gap: 10px;
}

.rank-wallet-stats span {
  color: #92a1b8;
  font-size: 0.82rem;
}

.rank-wallet-last {
  color: #718095;
  font-size: 0.78rem;
}

.market-list {
  margin-top: 2px;
  max-width: 780px;
}

.market-chip {
  min-height: 22px;
  background: #0c1320;
  color: #9fb0c8;
}

.rank-metric {
  font-size: 0.98rem;
}

.rank-metric span {
  color: #7d8ba1;
  font-size: 0.75rem;
}

.rank-metric.positive {
  color: #20d17a;
}

.rank-metric.negative {
  color: #ff6262;
}

.wallet-rank > .retro-link {
  min-height: 32px;
  background: transparent;
  border-color: rgba(45, 212, 191, 0.26);
  color: #8ff0dd;
}

.wallet-rank > .retro-link:hover {
  background: rgba(45, 212, 191, 0.08);
}

button {
  border-radius: 7px;
}

#openCopyModal,
#openInverseModal,
#openClaimProfile {
  background: #3b6df6;
  border-color: #3b6df6;
}

#openCopyModal:hover,
#openInverseModal:hover,
#openClaimProfile:hover {
  background: #315bd0;
}

.leaderboard,
.competitor-grid,
.panel-grid {
  gap: 12px;
}

@media (max-width: 1100px) {
  .wallet-rank {
    grid-template-columns: 40px minmax(0, 1fr) minmax(120px, auto) minmax(120px, auto);
  }
}

/* Leaderboard cleanup after real data review */
.onchain-panel {
  max-width: 100%;
}

.onchain-panel .panel-heading {
  min-height: 64px;
  padding: 16px 20px;
}

.wallet-rank {
  grid-template-columns: 46px minmax(420px, 1fr) 150px 150px 70px;
  min-height: 84px;
  padding: 14px 20px;
  align-items: center;
}

.rank-number {
  align-self: center;
  justify-content: center;
}

.podium-symbol {
  width: 24px;
  height: 24px;
  font-size: 0.92rem;
}

.rank-wallet {
  gap: 5px;
}

.rank-wallet-title {
  min-height: 24px;
}

.rank-wallet-title strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.rank-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.rank-wallet-stats {
  gap: 9px;
}

.rank-wallet-stats span {
  font-size: 0.78rem;
}

.rank-wallet-last {
  font-size: 0.74rem;
}

.market-list {
  gap: 5px;
  margin-top: 1px;
}

.market-chip {
  min-height: 20px;
  padding: 1px 7px;
  font-size: 0.66rem;
  color: #8fa0b8;
}

.muted-chip {
  color: #6f7d91;
}

.rank-metric {
  font-size: 0.94rem;
}

.rank-metric span {
  font-size: 0.71rem;
}

.wallet-rank > .retro-link {
  min-height: 30px;
  padding-inline: 11px;
  font-size: 0.76rem;
}

.wallet-address {
  display: inline;
  color: #6f7d91;
}

@media (min-width: 1101px) {
  .wallet-rank {
    column-gap: 20px;
  }
}

@media (max-width: 860px) {
  .wallet-rank {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 0;
  }
}

/* Showdown-inspired product direction */
:root {
  --bg: #070b0d;
  --panel: #1a2027;
  --panel-2: #202833;
  --ink: #f7f7f4;
  --muted: #7f8aa0;
  --line: rgba(139, 152, 174, 0.16);
  --orange: #ff6533;
  --cyan: #22d7f5;
  --green: #20d581;
  --red: #ff4968;
  --yellow: #ff9f43;
  --blue: #22d7f5;
  --soft-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

body {
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 215, 245, 0.06), transparent 32%),
    radial-gradient(circle at 24% 16%, rgba(255, 101, 51, 0.055), transparent 30%),
    #070b0d;
  color: var(--ink);
}

.shell {
  width: min(1500px, 100%);
  padding: 22px;
}

.topbar {
  grid-template-columns: minmax(0, 1.9fr) minmax(430px, 0.95fr);
  min-height: 280px;
  border: 1px solid rgba(139, 152, 174, 0.18);
  border-radius: 14px;
  background: #1b222a;
  box-shadow: var(--soft-shadow);
}

.showdown-main {
  align-content: center;
  gap: 22px;
  padding: 38px 42px;
}

.showdown-kicker {
  color: #8b96aa;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.showdown-kicker::first-letter {
  color: var(--orange);
}

.showdown-main h1 {
  max-width: 900px;
  color: #fbfbf8;
  font-size: clamp(3.4rem, 6vw, 5.9rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.subtitle {
  color: #8792a7;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subtitle strong:first-child {
  color: #ffffff;
}

.subtitle strong:last-child {
  color: var(--orange);
}

.showdown-actions {
  gap: 12px;
}

.showdown-actions button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#openCopyModal {
  background: var(--orange);
  border-color: var(--orange);
  color: #11151b;
}

#openCopyModal:hover {
  background: #ff7a4f;
  border-color: #ff7a4f;
}

#openInverseModal {
  background: transparent;
  border: 1px dashed rgba(255, 101, 51, 0.72);
  color: var(--orange);
  box-shadow: 0 0 30px rgba(255, 101, 51, 0.18);
}

#openInverseModal:hover {
  background: rgba(255, 101, 51, 0.08);
}

.status-panel {
  border-left: 1px solid rgba(139, 152, 174, 0.16);
  background: #1a2028;
}

.showdown-clock {
  min-height: 54px;
  border-bottom: 1px solid rgba(139, 152, 174, 0.14);
  color: #f5f7fb;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.status-dot {
  color: var(--green);
}

.status-dot::before {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 18px currentColor;
}

.score-list {
  background: transparent;
}

.score-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 84px;
  border-bottom: 1px solid rgba(139, 152, 174, 0.12);
  background: transparent;
  padding: 18px 24px;
}

.score-row img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 101, 51, 0.9);
}

.score-row.drew img {
  border-color: var(--cyan);
}

.score-row strong,
.score-row.vibhu strong {
  color: var(--cyan);
  font-size: 1.24rem;
  font-weight: 850;
}

.score-row.vibhu strong {
  color: var(--orange);
}

.score-row span,
.score-number span {
  color: #7f8aa0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.score-number strong {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 850;
}

.score-footer {
  border-top: 0;
  background: transparent;
  color: #f4f7fb;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.showdown-scoreboard .telegram-link {
  margin: 14px 24px 20px;
}

.telegram-link {
  justify-content: center;
  background: transparent;
  border-color: rgba(34, 215, 245, 0.28);
  color: #a9edfb;
}

.telegram-link:hover {
  background: rgba(34, 215, 245, 0.08);
}

.tabbar {
  margin: 18px 0 14px;
  border: 1px solid rgba(139, 152, 174, 0.16);
  border-radius: 9px;
  background: #11171d;
  padding: 0;
  overflow: hidden;
}

.tab-button {
  min-height: 48px;
  border-radius: 0;
  color: #7f8aa0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.tab-button.active {
  background: #1b222b;
  color: #ffffff;
}

.panel,
.leader-card,
.leader-metric,
.competitor-card {
  border: 1px solid rgba(139, 152, 174, 0.16);
  border-radius: 13px;
  background: #11171d;
  box-shadow: none;
}

.panel-heading {
  min-height: 76px;
  background: #121922;
  border-bottom: 1px solid rgba(139, 152, 174, 0.15);
}

.eyebrow,
.label {
  color: #8c97aa;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.onchain-panel .panel-heading h2 {
  color: #f7f7f4;
  font-size: 1.18rem;
  font-weight: 820;
}

#openClaimProfile {
  min-height: 44px;
  background: var(--orange);
  border-color: var(--orange);
  color: #10151b;
  font-family: var(--mono);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.wallet-leaderboard {
  border-top: 0;
}

.wallet-rank {
  grid-template-columns: 54px minmax(420px, 1fr) 160px 160px 78px;
  min-height: 96px;
  padding: 16px 22px;
  background: #10161d;
  border-top: 1px solid rgba(139, 152, 174, 0.13);
}

.wallet-rank:hover {
  background: #151d25;
}

.wallet-rank.podium-1 {
  box-shadow: inset 3px 0 0 var(--orange);
}

.wallet-rank.podium-2 {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.wallet-rank.podium-3 {
  box-shadow: inset 3px 0 0 rgba(255, 159, 67, 0.75);
}

.rank-number {
  color: #93a0b5;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.podium-symbol {
  background: rgba(255, 101, 51, 0.16);
  color: var(--orange);
}

.podium-2 .podium-symbol {
  background: rgba(34, 215, 245, 0.14);
  color: var(--cyan);
}

.rank-wallet-title strong {
  color: #f8fafc;
  font-size: 1.04rem;
  font-weight: 820;
}

.wallet-badge,
.x-badge {
  background: rgba(255, 101, 51, 0.12);
  border-color: rgba(255, 101, 51, 0.25);
  color: #ffb199;
}

.rank-wallet-stats span,
.rank-wallet-last,
.wallet-address {
  color: #8b96aa;
}

.rank-wallet-stats span {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.market-chip {
  background: #121a23;
  border-color: rgba(139, 152, 174, 0.15);
  color: #a8b5c9;
}

.rank-metric {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 850;
}

.rank-metric span {
  color: #8b96aa;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.rank-metric.positive {
  color: var(--green);
}

.rank-metric.negative {
  color: var(--red);
}

.wallet-rank > .retro-link {
  background: rgba(34, 215, 245, 0.08);
  border-color: rgba(34, 215, 245, 0.22);
  color: #a9edfb;
}

.volume-svg-bar,
.tab-button.active {
  box-shadow: none;
}

.competitor-card:nth-child(1) {
  border-color: rgba(255, 101, 51, 0.38);
}

.competitor-card:nth-child(2) {
  border-color: rgba(34, 215, 245, 0.5);
  box-shadow: 0 0 55px rgba(34, 215, 245, 0.12);
}

.pnl.positive,
.positive {
  color: var(--green);
}

.pnl.negative,
.negative {
  color: var(--red);
}

@media (max-width: 980px) {
  .topbar {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .status-panel {
    border-left: 0;
    border-top: 1px solid rgba(139, 152, 174, 0.16);
  }

  .showdown-main h1 {
    font-size: clamp(2.6rem, 10vw, 4.5rem);
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 14px 10px;
  }

  .topbar {
    padding: 14px;
  }

  .leader-card,
  .leader-metric,
  .competitor-top,
  .panel-heading {
    padding: 14px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 650px;
  }
}

/* Professional dashboard skin */
:root {
  --bg: #0b1020;
  --ink: #edf2ff;
  --muted: #8a94ad;
  --panel: #111827;
  --panel-2: #172033;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: rgba(0, 0, 0, 0.24);
  --pink: #d946ef;
  --cyan: #22d3ee;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --orange: #f97316;
  --blue: #60a5fa;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --soft-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98)),
    var(--bg);
  background-size: auto;
  color: var(--ink);
  font-family: var(--font);
  image-rendering: auto;
  letter-spacing: 0;
}

body::before {
  display: none;
}

button,
input,
select {
  font-family: var(--font);
}

.shell {
  width: min(1480px, 100%);
  padding: 24px;
}

.topbar,
.tabbar,
.leader-card,
.leader-metric,
.competitor-card,
.panel,
.wallet-search,
.inverse-hero,
.copy-alert,
.wallet-position,
.profile-summary,
.profile-section,
.profile-form,
.profile-preview,
.stat-chip,
.retro-link,
.telegram-link,
button,
input,
select {
  border-color: var(--line);
  box-shadow: none;
}

.topbar {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #0f172a;
  box-shadow: var(--soft-shadow);
}

.showdown-main {
  padding: 30px 34px;
}

.showdown-main h1 {
  color: #f8fafc;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
}

.subtitle {
  color: #cbd5e1;
  font-size: 1rem;
}

.subtitle strong {
  color: #f8fafc;
  font-weight: 800;
}

.eyebrow,
.label {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
}

h2 {
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.status-panel {
  border-left: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.showdown-clock,
.score-footer,
.panel-heading,
.competitor-top {
  border-color: var(--line);
}

.showdown-clock {
  border-bottom: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
}

.showdown-clock strong,
.showdown-clock #countdownHero {
  color: #f8fafc;
}

.status-dot {
  color: #fbbf24;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.status-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 0 18px currentColor;
}

.status-dot.live::before {
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12), 0 0 18px currentColor;
}

.score-list,
.wallet-leaderboard,
.challenge-chart,
.volume-chart,
.chart-summary,
.metrics,
.copy-grid {
  gap: 1px;
  background: var(--line);
}

.score-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  background: rgba(15, 23, 42, 0.82);
  padding: 16px 18px;
}

.score-row img,
.avatar {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: none;
}

.score-row strong,
.score-row.vibhu strong,
.leader-name,
.leader-metric > div,
.wallet-search-result strong,
.pnl,
.nick,
.rank-main strong,
.profile-total,
.profile-metric strong,
.activity-chart-title strong,
.chart-summary strong {
  color: #f8fafc;
  text-shadow: none;
}

.score-row span,
.score-number span,
.muted,
.leaderboard-note {
  color: var(--muted);
}

.score-number strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.positive,
.score-number strong.positive,
.score-number span.positive {
  color: var(--green);
}

.negative,
.score-number strong.negative,
.score-number span.negative {
  color: var(--red);
}

.score-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  font-weight: 700;
}

.tabbar {
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  padding: 6px;
  box-shadow: none;
}

.tab-button {
  border-radius: var(--radius-sm);
  background: transparent;
  color: #94a3b8;
  font-weight: 700;
  text-transform: none;
}

.tab-button.active {
  background: rgba(96, 165, 250, 0.16);
  color: #f8fafc;
}

button,
.retro-link,
.telegram-link {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #2563eb;
  color: #ffffff;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover,
.retro-link:hover,
.telegram-link:hover {
  background: #1d4ed8;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-row button,
.chart-range-controls button {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--line);
  color: #cbd5e1;
}

.button-row button:hover,
.chart-range-controls button:hover,
.chart-range-controls button.active {
  background: rgba(96, 165, 250, 0.18);
  color: #f8fafc;
}

.retro-link {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.24);
  color: #a5f3fc;
}

.telegram-link {
  background: rgba(41, 169, 235, 0.16);
  border-color: rgba(41, 169, 235, 0.28);
  color: #bae6fd;
}

label {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: none;
}

input,
select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.58);
  color: #f8fafc;
  padding: 0 11px;
}

input:focus,
select:focus {
  border-color: rgba(96, 165, 250, 0.72);
  outline: 3px solid rgba(96, 165, 250, 0.14);
}

input[type="checkbox"] {
  accent-color: #2563eb;
}

.leaderboard {
  grid-template-columns: minmax(0, 1.6fr) minmax(170px, 0.7fr) minmax(190px, 0.7fr);
}

.leader-card,
.leader-metric,
.competitor-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.leader-card {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), transparent 48%),
    rgba(15, 23, 42, 0.82);
}

.leader-name,
.leader-metric > div {
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
  font-weight: 800;
  text-transform: none;
}

.copy-grid {
  border-top: 1px solid var(--line);
}

.copy-form,
.copy-status {
  background: rgba(15, 23, 42, 0.82);
}

.inverse-hero,
.wallet-search,
.copy-alert,
.wallet-position,
.profile-form,
.profile-preview,
.profile-summary,
.profile-section,
.stat-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.38);
  box-shadow: none;
}

.inverse-hero h3 {
  color: #f8fafc;
  text-shadow: none;
  text-transform: none;
}

.leaderboard-note,
.leaderboard-summary,
.activity-chart-title,
.chart-summary div,
.pnl-chart,
.volume-svg,
.metric,
.bet-card,
.bet-total-card,
.wallet-rank,
.wallet-search-result,
.table-wrap {
  background: rgba(15, 23, 42, 0.82);
}

.leaderboard-note {
  border-bottom: 1px solid var(--line);
}

.leaderboard-summary {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.wallet-rank {
  border-radius: 0;
  box-shadow: none;
  padding: 15px 18px;
}

.wallet-rank.podium-1,
.wallet-rank.podium-2,
.wallet-rank.podium-3 {
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.78);
}

.wallet-rank.podium-1 {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.82) 28%);
}

.wallet-rank.podium-2 {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(15, 23, 42, 0.82) 28%);
}

.wallet-rank.podium-3 {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.82) 28%);
}

.rank-number {
  color: #f8fafc;
  font-weight: 800;
}

.rank-main {
  gap: 5px;
}

.rank-main strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.rank-main span,
.rank-sub,
.rank-meta,
.rank-metric span {
  color: #94a3b8;
}

.rank-metric {
  color: #f8fafc;
  font-weight: 800;
}

.rank-markets {
  gap: 6px;
}

.rank-markets span,
.market-chip,
.profile-market {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 700;
}

.chart-panel,
.onchain-panel {
  overflow: hidden;
}

.challenge-chart,
.volume-chart,
.chart-summary {
  border-top: 1px solid var(--line);
}

.activity-chart-title {
  border-top: 1px solid var(--line);
  color: #cbd5e1;
}

.volume-svg-bar {
  fill: #38bdf8;
  filter: none;
}

.wallet-line {
  stroke: #22c55e;
  filter: none;
}

.wallet-point {
  fill: #22c55e;
  stroke: #0f172a;
  stroke-width: 2px;
}

.chart-grid {
  stroke: rgba(148, 163, 184, 0.18);
}

.chart-zero {
  stroke: rgba(245, 158, 11, 0.7);
}

.chart-label,
.chart-name {
  fill: #94a3b8;
  font-family: var(--font);
  font-size: 12px;
  text-shadow: none;
}

.activity-tooltip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--soft-shadow);
  color: #e2e8f0;
}

.competitor-card {
  padding: 0;
}

.competitor-top {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
}

.competitor-card:nth-child(1) .nick,
.competitor-card:nth-child(2) .nick {
  color: #f8fafc;
}

.portrait {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #020617;
  box-shadow: none;
  image-rendering: auto;
}

.pnl {
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  font-weight: 850;
}

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 14px;
}

table {
  font-family: var(--font);
}

th {
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 0.88rem;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

td a {
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  box-shadow: none;
}

.modal-backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
  box-shadow: var(--soft-shadow);
}

.modal-card > .panel-heading {
  border-bottom: 1px solid var(--line);
}

.modal-card > .copy-grid,
.modal-card > .profile-status-panel {
  scrollbar-color: #475569 #0f172a;
}

.modal::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track,
.modal-card > .copy-grid::-webkit-scrollbar-track,
.modal-card > .profile-status-panel::-webkit-scrollbar-track {
  background: #0f172a;
  border-left: 1px solid var(--line);
}

.modal::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb,
.modal-card > .copy-grid::-webkit-scrollbar-thumb,
.modal-card > .profile-status-panel::-webkit-scrollbar-thumb {
  border: 2px solid #0f172a;
  border-radius: 999px;
  background: #475569;
}

.profile-avatar-preview {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: none;
}

.profile-table-row,
.profile-trade-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

footer {
  color: #64748b;
  font-family: var(--font);
}

@media (max-width: 980px) {
  .status-panel {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0;
  }
}

/* Executive dashboard refinement */
:root {
  --bg: #090d18;
  --ink: #f3f6fb;
  --muted: #8b96aa;
  --panel: #111827;
  --panel-2: #151f2f;
  --line: rgba(148, 163, 184, 0.14);
  --shadow: rgba(2, 6, 23, 0.36);
  --cyan: #2dd4bf;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #d97706;
  --orange: #ea580c;
  --blue: #3b82f6;
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

body {
  background:
    linear-gradient(180deg, #0b1220 0%, #090d18 45%, #070a12 100%),
    #090d18;
  color: #e8edf6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  padding: 22px;
}

.topbar {
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    #101827;
}

.showdown-main {
  gap: 16px;
  padding: 30px 32px;
}

.showdown-main h1 {
  max-width: 820px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -0.02em;
}

.subtitle {
  color: #aeb8ca;
  font-size: 0.98rem;
}

.eyebrow,
.label {
  color: #7f8ca3;
  font-size: 0.69rem;
  font-weight: 720;
  letter-spacing: 0.09em;
}

h2 {
  font-size: 1rem;
  font-weight: 720;
}

.status-panel {
  background: #0e1624;
}

.showdown-clock {
  color: #9aa7ba;
}

.score-row {
  background: #101827;
}

.score-row + .score-row {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.score-row strong {
  font-size: 1rem;
  font-weight: 720;
}

.score-number strong {
  font-family: var(--mono);
  font-size: 1.04rem;
  font-weight: 700;
}

.score-footer {
  background: #0f1724;
  color: #b6c0d0;
}

.showdown-scoreboard .telegram-link {
  margin-top: 12px;
}

.tabbar {
  background: rgba(15, 23, 36, 0.9);
  border-color: rgba(148, 163, 184, 0.12);
  padding: 5px;
}

.tab-button {
  min-height: 38px;
  color: #8d99ad;
}

.tab-button.active {
  background: #1b2638;
  color: #f4f7fb;
}

button,
.retro-link,
.telegram-link {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5eaf3;
  font-size: 0.83rem;
  font-weight: 680;
}

button:hover,
.retro-link:hover,
.telegram-link:hover {
  background: #273449;
  border-color: rgba(148, 163, 184, 0.26);
}

#openCopyModal,
#openInverseModal,
#copyWalletSearchButton,
#inverseWalletSearchButton,
#claimWalletProfile,
#saveProfileSettings,
#openClaimProfile {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

#openCopyModal:hover,
#openInverseModal:hover,
#copyWalletSearchButton:hover,
#inverseWalletSearchButton:hover,
#claimWalletProfile:hover,
#saveProfileSettings:hover,
#openClaimProfile:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#copyWalletClearButton,
#inverseWalletClearButton,
[data-close-copy-modal],
[data-close-inverse-modal],
[data-close-profile-modal],
#refreshCopyModal,
#refreshInverseModal {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
  color: #aeb8ca;
}

.telegram-link {
  background: #142235;
  border-color: rgba(56, 189, 248, 0.2);
  color: #b9e7ff;
}

.retro-link {
  background: #121f2b;
  border-color: rgba(45, 212, 191, 0.18);
  color: #a7f3d0;
}

input,
select {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.18);
  color: #eef3fb;
}

input::placeholder {
  color: #66748a;
}

input:focus,
select:focus {
  border-color: #3b82f6;
  outline: 2px solid rgba(59, 130, 246, 0.18);
}

.leader-card,
.leader-metric,
.competitor-card,
.panel,
.modal-card {
  background: #101827;
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.leader-card {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent 42%),
    #101827;
}

.leader-name,
.leader-metric > div,
.pnl,
.profile-total {
  color: #f8fafc;
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.leader-name,
.leader-metric > div {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
}

.copy-form,
.copy-status,
.leaderboard-note,
.leaderboard-summary,
.activity-chart-title,
.chart-summary div,
.pnl-chart,
.volume-svg,
.metric,
.bet-card,
.bet-total-card,
.wallet-rank,
.wallet-search-result,
.table-wrap,
.inverse-hero,
.wallet-search,
.copy-alert,
.wallet-position,
.profile-form,
.profile-preview,
.profile-summary,
.profile-section,
.stat-chip {
  background: #0f1724;
  border-color: rgba(148, 163, 184, 0.12);
}

.panel-heading,
.competitor-top {
  background: #111b2b;
  border-color: rgba(148, 163, 184, 0.12);
}

.wallet-leaderboard,
.challenge-chart,
.volume-chart,
.chart-summary,
.metrics,
.score-list,
.copy-grid {
  background: rgba(148, 163, 184, 0.12);
}

.wallet-rank {
  gap: 14px;
  padding: 16px 18px;
}

.wallet-rank:hover {
  background: #121d2d;
}

.wallet-rank.podium-1,
.wallet-rank.podium-2,
.wallet-rank.podium-3 {
  box-shadow: inset 3px 0 0 #3b82f6;
}

.wallet-rank.podium-1 {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.09), #0f1724 24%);
}

.wallet-rank.podium-2 {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), #0f1724 24%);
}

.wallet-rank.podium-3 {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.08), #0f1724 24%);
}

.rank-number,
.rank-main strong {
  color: #f3f6fb;
}

.rank-number {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.rank-metric {
  font-family: var(--mono);
  font-size: 0.95rem;
}

.rank-main span,
.rank-sub,
.rank-meta,
.rank-metric span,
.leaderboard-summary,
.activity-chart-title,
.chart-summary span {
  color: #8b96aa;
}

.rank-markets span,
.market-chip,
.profile-market {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.14);
  color: #aeb8ca;
}

.volume-svg-bar {
  fill: #3b82f6;
}

.wallet-line,
.wallet-point {
  stroke: #14b8a6;
}

.wallet-point {
  fill: #14b8a6;
}

.chart-label,
.chart-name {
  fill: #7f8ca3;
  font-size: 11px;
}

.activity-tooltip {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.16);
}

.portrait {
  background: #0b1220;
}

.nick,
.rank-main strong,
.profile-metric strong,
.activity-chart-title strong,
.chart-summary strong {
  font-weight: 720;
}

.pnl {
  font-size: clamp(1.55rem, 2.4vw, 2.55rem);
  font-weight: 780;
}

th {
  background: #0c1422;
  color: #7f8ca3;
  font-weight: 720;
}

td {
  color: #d8dee9;
}

tr:hover td {
  background: rgba(59, 130, 246, 0.035);
}

td a {
  background: #111827;
  border-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.modal-card {
  background: #0f1724;
}

.modal-card > .panel-heading {
  background: #111b2b;
}

.modal-backdrop {
  background: rgba(3, 7, 18, 0.78);
}

.profile-avatar-preview {
  background: #111827;
  color: #e5eaf3;
}

.positive {
  color: #22c55e;
}

.negative {
  color: #ef4444;
}

.score-number strong.positive,
.score-number span.positive {
  color: #22c55e;
}

.score-number strong.negative,
.score-number span.negative {
  color: #ef4444;
}

/* Leaderboard product polish */
.shell {
  width: min(1280px, 100%);
}

.topbar {
  min-height: 236px;
}

.showdown-main h1 {
  font-size: clamp(2.15rem, 3.2vw, 3.55rem);
}

.showdown-actions {
  gap: 10px;
}

.showdown-actions button {
  min-height: 40px;
  padding-inline: 18px;
}

.tabbar {
  margin-top: 16px;
}

.tab-button {
  font-size: 0.86rem;
}

.onchain-panel .panel-heading {
  padding: 18px 20px;
}

.onchain-panel .panel-heading h2 {
  font-size: 1.05rem;
}

.wallet-leaderboard {
  gap: 0;
  background: transparent;
}

.wallet-rank {
  grid-template-columns: 48px minmax(380px, 1fr) 148px 148px 76px;
  gap: 18px;
  min-height: 104px;
  padding: 18px 20px;
  background: #0f1724;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.wallet-rank:first-child {
  border-top: 0;
}

.wallet-rank:hover {
  background: #131d2c;
}

.wallet-rank.podium-1,
.wallet-rank.podium-2,
.wallet-rank.podium-3 {
  box-shadow: none;
}

.wallet-rank.podium-1,
.wallet-rank.podium-2,
.wallet-rank.podium-3 {
  background: #0f1724;
}

.wallet-rank.podium-1:hover,
.wallet-rank.podium-2:hover,
.wallet-rank.podium-3:hover {
  background: #131d2c;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa7ba;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
}

.podium-symbol {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  font-size: 1rem;
}

.podium-1 .podium-symbol {
  background: rgba(217, 119, 6, 0.16);
  color: #fbbf24;
}

.podium-2 .podium-symbol {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.podium-3 .podium-symbol {
  background: rgba(180, 83, 9, 0.14);
  color: #fdba74;
}

.rank-wallet {
  gap: 7px;
}

.rank-wallet-title {
  gap: 10px;
}

.rank-wallet-title strong {
  color: #e7edf7;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.1;
  text-shadow: none;
}

.rank-avatar,
.rank-avatar.placeholder {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #172033;
  box-shadow: none;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
}

.rank-avatar.inverse-avatar,
.profile-hero-row img.inverse-avatar {
  transform: rotate(180deg);
}

.wallet-badge,
.x-badge {
  min-height: 24px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #bfdbfe;
  box-shadow: none;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: none;
}

.x-badge:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
  transform: none;
}

.wallet-address,
.rank-wallet-last {
  color: #7f8ca3;
  font-size: 0.78rem;
}

.rank-wallet-stats {
  gap: 12px;
}

.rank-wallet-stats span {
  min-height: 0;
  border: 0;
  background: transparent;
  color: #9aa7ba;
  box-shadow: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 520;
  line-height: 1.25;
  text-transform: none;
}

.rank-wallet-stats span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 2px 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.rank-wallet-stats span:first-child::before {
  display: none;
}

.market-list {
  gap: 6px;
}

.market-chip {
  min-height: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.86);
  color: #9aa7ba;
  box-shadow: none;
  padding: 2px 7px;
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rank-metric {
  align-content: center;
  gap: 3px;
  color: #f3f6fb;
  font-family: var(--mono);
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.15;
  text-align: right;
}

.rank-metric span {
  color: #7f8ca3;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.rank-metric.positive {
  color: #22c55e;
}

.rank-metric.negative {
  color: #ef4444;
}

.wallet-rank > .retro-link {
  justify-self: end;
  align-self: center;
  min-height: 34px;
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(20, 184, 166, 0.08);
  color: #99f6e4;
  padding-inline: 12px;
  font-size: 0.78rem;
}

.wallet-rank > .retro-link:hover {
  background: rgba(20, 184, 166, 0.14);
}

.wallet-rank > .synthetic-link,
.wallet-rank > .synthetic-link:hover {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(249, 115, 22, 0.1);
  color: #fed7aa;
  cursor: pointer;
  pointer-events: auto;
}

.leaderboard-summary {
  padding: 12px 20px;
  font-size: 0.83rem;
}

.leaderboard-live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 36, 0.72);
  color: #94a3b8;
  font-size: 0.82rem;
}

.leaderboard-live-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.34);
  padding: 3px 10px;
}

.leaderboard-live-status strong {
  color: #f97316;
}

@media (max-width: 1100px) {
  .wallet-rank {
    grid-template-columns: 42px minmax(0, 1fr) minmax(125px, auto) minmax(125px, auto);
  }

  .wallet-rank > .retro-link {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .wallet-rank {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-metric,
  .wallet-rank > .retro-link {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .rank-wallet-stats {
    gap: 7px;
  }

  .rank-wallet-stats span::before {
    display: none;
  }
}

/* FINAL Phoenix brand layer - must stay last */
:root {
  --bg: #090602;
  --panel: #14100c;
  --panel-2: #1d1711;
  --ink: #fffaf2;
  --muted: #b9aa98;
  --line: rgba(255, 122, 24, 0.22);
  --green: #28d17c;
  --red: #ff4f4f;
  --cyan: #ff8a24;
  --yellow: #ffd7a3;
  --orange: #ff7a18;
  --blue: #ff9b3d;
  --brand-orange: #ff7a18;
  --brand-orange-2: #ff9b2f;
  --brand-orange-dark: #8a3306;
  --brand-cream: #fff4e5;
}

body {
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 122, 24, 0.2), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(255, 180, 84, 0.12), transparent 32%),
    linear-gradient(180deg, #100904 0%, #080604 58%, #050403 100%);
}

.topbar {
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.2), transparent 42%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.06), transparent 45%),
    #14100c;
  border-color: rgba(255, 122, 24, 0.32);
}

.showdown-main h1 {
  color: var(--brand-cream);
}

.showdown-kicker,
.subtitle {
  color: #c7b6a2;
}

.subtitle strong:first-child {
  color: #ffffff;
}

.subtitle strong:last-child {
  color: var(--brand-orange-2);
}

#openCopyModal,
#openClaimProfile {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-2));
  border-color: transparent;
  color: #160904;
}

#openCopyModal:hover,
#openClaimProfile:hover {
  background: linear-gradient(90deg, #ff8a24, #ffb057);
  border-color: transparent;
}

#openInverseModal {
  background: rgba(255, 122, 24, 0.08);
  border-color: rgba(255, 122, 24, 0.54);
  color: #ffd8b0;
  box-shadow: 0 0 28px rgba(255, 122, 24, 0.16);
}

#openInverseModal:hover {
  background: rgba(255, 122, 24, 0.15);
}

.status-panel,
.score-row,
.score-footer,
.panel,
.leader-card,
.leader-metric,
.competitor-card,
.modal-card,
.wallet-rank,
.copy-form,
.copy-status,
.table-wrap,
.profile-section,
.profile-form,
.profile-preview,
.profile-summary,
.stat-chip {
  background-color: #14100c;
  border-color: rgba(255, 122, 24, 0.18);
}

.panel-heading,
.competitor-top {
  background: #1a130d;
  border-color: rgba(255, 122, 24, 0.16);
}

.showdown-clock,
.score-row,
.wallet-rank {
  border-color: rgba(255, 122, 24, 0.16);
}

.score-row img {
  border-color: rgba(255, 122, 24, 0.8);
}

.score-row.drew img {
  border-color: var(--brand-orange-2);
}

.score-row strong,
.score-number strong.positive,
.score-number span.positive,
.status-dot,
.rank-metric.positive,
.positive,
.pnl.positive {
  color: #35df88;
}

.score-row.vibhu strong {
  color: var(--brand-orange-2);
}

.score-number strong.negative,
.score-number span.negative,
.rank-metric.negative,
.negative,
.pnl.negative {
  color: var(--red);
}

.tabbar {
  border-color: rgba(255, 122, 24, 0.18);
  background: #0f0b08;
}

.tab-button.active {
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.32), rgba(255, 255, 255, 0.06));
  color: #ffffff;
}

.wallet-rank:hover {
  background: #1d1711;
}

.wallet-rank.podium-1 {
  box-shadow: inset 3px 0 0 var(--brand-orange);
}

.wallet-rank.podium-2 {
  box-shadow: inset 3px 0 0 #ffb057;
}

.wallet-rank.podium-3 {
  box-shadow: inset 3px 0 0 #fff4e5;
}

.podium-symbol,
.podium-1 .podium-symbol {
  background: rgba(255, 122, 24, 0.14);
  color: var(--brand-orange-2);
}

.podium-2 .podium-symbol {
  background: rgba(255, 176, 87, 0.14);
  color: #ffcf91;
}

.podium-3 .podium-symbol {
  background: rgba(255, 244, 229, 0.12);
  color: #fff4e5;
}

.rank-wallet-title strong,
.leader-name,
.leader-metric > div,
h2 {
  color: var(--brand-cream);
}

.wallet-badge,
.x-badge {
  background: rgba(255, 122, 24, 0.12);
  border-color: rgba(255, 122, 24, 0.28);
  color: #ffd8b0;
}

.market-chip {
  background: #1a130d;
  border-color: rgba(255, 122, 24, 0.2);
  color: #d8c9b7;
}

.wallet-rank > .retro-link,
.telegram-link {
  background: rgba(255, 122, 24, 0.1);
  border-color: rgba(255, 122, 24, 0.3);
  color: #ffd8b0;
}

.wallet-rank > .retro-link:hover,
.telegram-link:hover {
  background: rgba(255, 122, 24, 0.18);
}

button {
  background: #1b130c;
  border-color: rgba(255, 122, 24, 0.24);
  color: #fff4e5;
}

button:hover {
  background: #24180e;
}

input,
select {
  background: #0c0805;
  border-color: rgba(255, 122, 24, 0.22);
}

input:focus,
select:focus {
  border-color: var(--brand-orange);
  outline-color: rgba(255, 122, 24, 0.22);
}

.volume-svg-bar {
  fill: var(--brand-orange);
}

.wallet-line,
.wallet-point {
  stroke: var(--brand-orange-2);
}

.wallet-point {
  fill: var(--brand-orange-2);
}
