#page {
  transform: scale(0.9);
  transform-origin: top center;
  margin: 0 auto;
}


/* ===== Dark Mode Styles ALWAYS on ===== */
  body,
  body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
    
  }

  h1, h2, h3, h4, h5, h6 {
    color: #f5f5f5;
  }

  /* Tabs */
  .nav-tabs .nav-link {
    color: #aaa;
    background-color: transparent;
    border-color: transparent transparent #2b2b2b;
  }
  .nav-tabs .nav-link.active {
    color: #fff;
    background-color: #1e1e1e;
    border-color: #2b2b2b #2b2b2b #1e1e1e;
  }

  /* Tables */
  .table {
    color: #ddd;
    background-color: #1a1a1a;
  }
  .table th, .table td {
    border-color: #333;
  }
  .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #222;
  }
  .table-hover > tbody > tr:hover {
    background-color: #2a2a2a;
  }
  .table-dark th {
    background-color: #000000 !important;
    color: #fff;
  }

  /* Links */
  a {
    color: #4da6ff;
  }
  a:hover {
    color: #80c1ff;
  }

  /* Footer/Last updated text */
  #last-updated {
    color: #999;
  }

  /* Detail pop-up windows */
  body.dark-mode .tx-list {
    color: #ccc;
  }


/* Default tabs */
.nav-tabs .nav-link {
  color: #aaa;
  border: none;
  background-color: transparent;
    font-weight: 600;
}

/* Hover state: text turns WINR yellow */
.nav-tabs .nav-link:hover {
  color: #FFE500;
}

/* Active tab: text stays WINR yellow */
.nav-tabs .nav-link.active {
  color: #FFE500 !important;
  font-weight: 600;
  background-color: transparent;
  border: none;
}
.header-container {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.icon-left, .icon-right {
  position: absolute;
  top: 0;
}

.icon-left {
  left: 0;
  border-radius: 12px;
  padding: 8px;              /* space inside the box */
  display: inline-flex;       /* box hugs the icon only */
  align-items: center;
  justify-content: center;
}

.icon-right {
  right: 0;
  border-radius: 12px;
  padding: 8px;              /* space inside the box */
  display: inline-flex;       /* box hugs the icon only */
  align-items: center;
  justify-content: center;
  
}
.header-container {
  display: flex;
  align-items: center;       /* vertically center all children */
  justify-content:space-between;
  margin-bottom: 2rem;
}

.header-title {
  flex: 1;                   /* take remaining space */
  text-align: center;
  font-weight: 700;
  font-size: 3rem;
  margin: 0;
  color: white;
  font-family: 'Sora', sans-serif;
}

.highlight {
  color: #FFE500 !important;
}

.dropdown-item.active {
  color: #FFE500 !important;
  font-weight: 600;
}


/* Background just for the left icon */
.icon-bg {
  background-color: rgba(255, 255, 255, 0.1); /* lighter background */
  border-radius: 12px;
  padding: 8px;              /* space inside the box */
  display: inline-flex;       /* box hugs the icon only */
  align-items: center;
  justify-content: center;
}

.icon-left img{
  height:35px !important;  /* consistent size with the text line */
  width: auto;
}

.icon-right img {
  height:35px !important;  /* consistent size with the text line */
  width: auto;
}

.svg-white {
  filter: brightness(0) invert(1);
}
/* ===== Mobile & Portrait Fixes ===== */
@media (max-width: 1300px) {
  /* Make header stack vertically */
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .icon-left,
  .icon-right {
    position: static;   /* no absolute positioning */
    margin: 0.5rem 0;
  }

  .header-title {
    font-size: 1.8rem;  /* smaller title on mobile */
  }

  /* Tables should use full screen */
  .leaderboard-table,
  .overview-table {
    width: 100% !important;
    overflow-x: auto;
  }

  table {
    font-size: 0.8rem; /* smaller font for readability */
  }
    body.container {
    max-width: 90% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Dark-mode friendly input */
.wallet-search.form-control {
  background-color: #2b2b2b;  /* dark grey */
  color: #e0e0e0;             /* light text */
  border: 1px solid #444;     /* subtle border */
}

.wallet-search.form-control::placeholder {
  color: #888;                /* softer placeholder */
}

/* Default button */
.btn {
  border: none;
  background-color: #0e0d0d;   /* dark bg */
  color: #e0e0e0;              /* light text */
  transition: all 0.2s ease-in-out;
}

/* Hover → gold text */
.btn:hover {
  color: #FFD700 !important;
  background-color: #121212;
}

/* Focus/active → remove default browser highlights, 
   but keep hover color working */
.btn:focus,
.btn:active,
.btn:focus:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: #121212;
  /* don't force color here */
}



.card-dark {
  background-color: #212529; /* Bootstrap's dark shade */
  color: #fff;
}
.transparent-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


.lookup-container {
  background-color: #121212; /* same as body */
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
}

/* Compact dark button */
.dropdown .btn-dark {
  background-color: #1b1b1b;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.35rem 0.75rem;
  padding-right: 1.5rem;    /* ✅ extra space for arrow */
  border-radius: 0.5rem;
  min-width: fit-content;   /* ✅ fits text + arrow */
  width: auto;
  font-weight: 600;


}

/* Hover consistent */
.dropdown .btn-dark:hover,
.dropdown .btn-dark:focus {
  background-color: #2a2a2a;
  color: #FFE500;
  font-weight: 600;
}

/* Dropdown menu items */
.dropdown-menu-dark {
  background-color: #1b1b1b;
  border: 1px solid #2a2a2a;
  font-size: 0.95rem;
  font-weight: 600;
}

.dropdown-menu-dark .dropdown-item {
  color: #e0e0e0;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

/* Match dropdown width to button */
.dropdown-menu {
  min-width: 100% !important; /* ensures it’s at least as wide as button */
  width: 100% !important;     /* fixes exact match */
  box-sizing: border-box;     /* respects border/padding */
}


/* Dropdown menu items */
.dropdown-menu-dark .dropdown-item {
  color: #e0e0e0;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

/* Hover / focus → yellow */
.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
  background-color: #1b1b1b !important;
  color: #FFE500 !important;   /* 🔹 yellow text on hover */

}

/* 🔹 remove yellow from .active */
.dropdown-menu-dark .dropdown-item.active {
  background-color: #1b1b1b !important;
}

/* transition on the arrow */
.dropdown-toggle::after {
  transition: transform 0.2s ease;
}

/* when dropdown is open, rotate arrow */
.dropdown.show > .btn.dropdown-toggle::after {
  transform: rotate(180deg);
}

.card { background:#1b1b1b; border-color:#2a2a2a; border-radius:1rem; }
.stat-card { font-size:1.2rem; text-align:center; padding:2rem; }
.containertickets { padding-right: 0px; padding-left: 0px; }
.big { font-size:1.8rem; font-weight:600; }

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 37%, #2a2a2a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
  min-height: 1.2rem;
}

.skeleton-card {
  background: #1b1b1b;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1rem;
}

.skeleton-line {
  height: 14px;
  margin: 6px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 37%, #2a2a2a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* === Parent Race Tabs (Big Centered Buttons) === */
.parent-race-tabs {
  font-size: 2rem; /* ~3x larger text */
  gap: 2rem;       /* spacing between buttons */
}

.parent-race-tabs .nav-link {
  background: #1e1e1e;
  border-radius: 1rem;
  color: #f8f9fa;
  border: 2px solid #333;
  padding: 1rem 2.5rem;   /* big padding */
  font-weight: 700;
  transition: all 0.2s ease;
}

.parent-race-tabs .nav-link:hover {
  background: #2a2a2a;
  color: #FFE500;
  border-color: #FFE500;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
}

.parent-race-tabs .nav-link.active {
  background: #2a2a2a;
  color: #FFE500;
  border-color: #FFE500;
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.6);
}
.jackpot-card {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  border: 2px solid #0e0e0e;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.jackpot-card h2 {
  color: #ffc107;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,193,7,0.6);
}

.stat-box {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}
.stat-box:hover {
  border-color: #FFE500;
  box-shadow: 0 0 10px rgba(255,193,7,0.4);
}

.stat-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f8f9fa;
}
.jackpot-total {
  background: radial-gradient(circle at center, #222 0%, #111 100%);
  border: 3px solid #FFE500;
  border-radius: 1.2rem;
  box-shadow: 0 0 25px rgba(255,193,7,0.6), inset 0 0 15px rgba(255,193,7,0.2);
}

.jackpot-total h3 {
  color: #FFE500;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #00ff95;
  text-shadow: 0 0 20px rgba(0,255,149,0.9), 0 0 40px rgba(0,255,149,0.7);
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(1.05); opacity: 1; }
}
/* Jackpot shimmer placeholder */
.shimmer {
  color: transparent !important;
  position: relative;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
  min-width: 160px;
  height: 2.5rem;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: -150px;
  width: 150px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmerAnim 1.2s infinite;
}

@keyframes shimmerAnim {
  100% { left: 100%; }
}
/* Race buttons equal width & styled */
.parent-race-tabs .nav-link {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #f8f9fa;
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 1rem;
  transition: all 0.2s ease;
}

.parent-race-tabs .nav-link:hover {
  background: #2a2a2a;
   color: #FFE500;
  border-color:#FFE500;
}

.parent-race-tabs .nav-link.active {
  background: #2a2a2a;
   color: #FFE500;
  border-color: #FFE500;
  box-shadow: 0 0 12px rgba(255,193,7,0.4);
}

/* Logos inside buttons */
.race-logo {
  height: 28px;
  width: auto;
  filter: brightness(1.1);
}
/* === Scope toggle styled like nav-tabs === */
.scope-toggle .btn {
  color: #aaa;
  background-color: transparent;
  border: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin: 0 0.25rem;
}

.scope-toggle .btn:hover {
  color: #FFE500;
}

.scope-toggle .btn-check:checked + .btn {
  color: #FFE500 !important;
  border-bottom: 2px solid #FFE500;
  background: transparent;
}
.shimmer {
  display: inline-block;
  background: linear-gradient(90deg, #2a2a2a 25%, #444 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent !important;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


/* Floating helper */
.floating-helper{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 1100; /* above cards/navs */
  pointer-events: none; /* so only bubble is clickable */
}

/* The SVG/image */
.floating-helper .helper-img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
  user-select: none;
  pointer-events: auto; /* allow hover focus for tooltip if needed */
}

/* Clickable speech bubble */
.floating-helper .helper-bubble{
  pointer-events: auto;
  max-width: 260px;
  text-decoration: none;
  line-height: 1.25;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20, 20, 20, 0.85);
  color: #f8f9fa;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.floating-helper .helper-bubble {
  font-size: 1rem;       /* smaller text */
  white-space: nowrap;     /* keep all text on one line */
  max-width: none;         /* let it grow horizontally */
  padding: 8px 12px;       /* a little tighter */
}
/* Little tail for the bubble */
.floating-helper .helper-bubble::after{
  content: "";
  position: absolute;
  right: -6px;         /* tail points toward the image */
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: rotate(45deg);
  box-shadow: 2px 2px 10px rgba(0,0,0,.25);
}
/* === Fix for Daily Winners → Arbitrum Wallet Lookup === */
#walletLookupResult,
#walletLookupResult .card,
#walletLookupResult .card * {
  color: #f1f5f9 !important;
}

#walletLookupResult .card {
  background-color: #1b1b1b !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 0.75rem;
}

#walletLookupResult strong {
  color: #FFE500 !important;
}


/* Hover/focus affordance */
.floating-helper .helper-bubble:hover,
.floating-helper .helper-bubble:focus{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  outline: none;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce){
  .floating-helper .helper-bubble{
    transition: none;
  }
}

/* Tighten on very small screens */
@media (max-width: 480px){
  .floating-helper{
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }
  .floating-helper .helper-img{
    width: 52px; height: 52px;
  }
  .floating-helper .helper-bubble{
    max-width: 220px;
    font-size: .95rem;
    padding: 9px 10px;
  }
}
/* === Pagination Styling for Dark Mode === */
.pagination {
  justify-content: center;
  margin-top: 1rem;
}

.pagination .page-item {
  margin: 0 3px;
}

.pagination .page-link {
  background-color: #0e0d0d;    /* matches your .btn base */
  color: #e0e0e0;               /* light text */
  border: 1px solid #2a2a2a;    /* subtle dark border */
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

/* Hover → golden accent */
.pagination .page-link:hover {
  background-color: #121212;
  color: #FFE500 !important;
  border-color: #FFE500;
  box-shadow: 0 0 8px rgba(255, 229, 0, 0.35);
}

/* Active → solid WINR gold */
.pagination .page-item.active .page-link {
  background-color: #FFE500;
  color: #1b1b1b !important;
  border-color: #FFE500;
  box-shadow: 0 0 10px rgba(255, 229, 0, 0.6);
}

/* Disabled Prev/Next */
.pagination .page-item.disabled .page-link {
  background-color: #1b1b1b;
  color: #666;
  border-color: #2a2a2a;
  cursor: not-allowed;
}
