/* --------------------------------------------- */
/* Global Styles & Color Palette                 */
/* --------------------------------------------- */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif, 
               "Apple Color Emoji", "Segoe UI Emoji", 
               "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #121315; /* Fallback dark color */
  color: #ffffff;
  line-height: 1.2;
  position: relative;
}

/* Background image with opacity */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/bg.png');  /* ← CORRECT PATH */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  opacity: 0.3;  /* Adjust this value between 0.1-1.0 for visibility */
}

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------- */
/* Header                                        */
/* --------------------------------------------- */
header {
  background-color: rgba(18, 19, 21, 0.9);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
}

/* Remove hover effects for nav-link */
.nav-link:focus-visible {
  outline: 3px solid #10b981;
  outline-offset: 2px;
}

/* --------------------------------------------- */
/* Hero Section                                  */
/* --------------------------------------------- */
.hero {
  text-align: center;
  margin: 0; /* Reduced overall hero margin */
}

.hero-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0; /* Remove extra gap below image */
}

/* --------------------------------------------- */
/* Scrolling Tokens Container                    */
/* --------------------------------------------- */
.scrolling-tokens {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  color: #ffffff;
  margin: 0;
  padding: 0;
  background-color: #1e1f22;
}

.scrolling-tokens p {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 240s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --------------------------------------------- */
/* Static message above the button               */
/* --------------------------------------------- */
.static-message {
  margin: 0.5rem 0;  /* Reduced margin */
  color: #ffffff;
  font-size: 1rem;
  font-weight: normal;
  font-family: "Roboto Mono", monospace;
}

/* --------------------------------------------- */
/* Button styling                                */
/* --------------------------------------------- */
.btn {
  display: inline-block;
  background-color: #86efac;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: "Roboto Mono", monospace;
  font-weight: normal;
  transition: background 0.3s;
  margin: 1rem 0;
}

.btn-flash {
  animation: btnFlash 0.15s ease-in-out;
}

@keyframes btnFlash {
  0% {
    box-shadow: 0 0 8px 3px #FF7000;
  }
  50% {
    box-shadow: 0 0 14px 5px #FF7000;
  }
  100% {
    box-shadow: none;
  }
}

/* --------------------------------------------- */
/* Container wrapper                             */
/* --------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem;
}

/* --------------------------------------------- */
/* Modern Stat Card Styling                      */
/* --------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(58, 58, 58, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: "Orbitron", monospace;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.stat-card h2 {
  margin: 0 0 1.2rem;
  padding: 1rem 0;
  background: rgba(130, 169, 209, 0.15);
  color: #B4D7FE;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(130, 169, 209, 0.3);
}

.stat-values {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  color: #D8A4C0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.5rem;
}

.stat-values p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.stat-values p:hover {
  background-color: rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}

.stat-values span {
  transition: all 0.5s ease-in-out;
}

/* Specific labels for Cat and Dog */
.label-cat {
  color: #B8D5A8;
  display: flex;
  align-items: center;
}

.label-cat::before {
  content: '🐱';
  margin-right: 8px;
  font-size: 1.1rem;
}

.label-dog {
  color: #E2E2AA;
  display: flex;
  align-items: center;
}

.label-dog::before {
  content: '🐶';
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Count values styling */
.cat-count,
.dog-count {
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animation for count updates */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.count-updated {
  animation: pulse 0.6s ease-in-out;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .stat-card h2 {
    font-size: 1.3rem;
  }

  .stat-values {
    font-size: 1.1rem;
    padding: 1.2rem;
  }

  .cat-count,
  .dog-count {
    font-size: 1.2rem;
  }
}

/* Style for the dynamic tokenTicker (red color) */
.token-ticker {
  color: #FF0000;
}

/* --------------------------------------------- */
/* Season Banner Styling                         */
/* --------------------------------------------- */
.season-banner {
  background: linear-gradient(145deg, rgba(58, 58, 58, 0.9), rgba(38, 38, 38, 0.8));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: all 0.5s ease;
  overflow: hidden;
  position: relative;
}

.season-icon {
  font-size: 3rem;
  margin-right: 1.5rem;
  animation: pulse 2s infinite ease-in-out;
}

.season-info {
  flex: 1;
}

.season-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 700;
}

.season-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 0.5rem;
}

.season-stats p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  font-family: "Roboto Mono", monospace;
}

.season-info-text {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  opacity: 0.85;
  color: #FF6B6B;
  font-family: "Roboto Mono", monospace;
  text-align: center; /* ADD THIS LINE */
}

.season-info-text:before {
  content: "(";
}

.season-info-text:after {
  content: ")";
}

.season-info-text a {
  color: #FF6B6B;
  text-decoration: underline;
  font-weight: 500;
}

.season-info-text a:hover {
  opacity: 1;
  color: #FF3333;
}

/* Add shimmer effect */
.season-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 6s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

@keyframes seasonUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
  100% { transform: scale(1); }
}

.season-update {
  animation: seasonUpdate 1s ease-in-out;
}

@media (max-width: 768px) {
  .season-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .season-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .season-info h2 {
    font-size: 1.5rem;
  }

  .season-stats {
    justify-content: center;
  }
}

/* --------------------------------------------- */
/* Statistics Header Section (Updated)           */
/* --------------------------------------------- */
.statistics-header {
  text-align: center;
  margin: 1rem 0 2rem;
  position: relative;
}

.statistics-header__text {
  margin-bottom: 1rem;
}

.statistics-header h2 {
  color: #82A9D1;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.statistics-header .clarification-text {
  color: #D2A48C;
  font-size: 0.9rem;
  font-family: "Roboto Mono", monospace;
  font-style: italic;
  opacity: 0.9;
  margin-top: 0;
}

/* --------------------------------------------- */
/* Toggle Button & Stats Container               */
/* --------------------------------------------- */
#stats-container {
  overflow: hidden;
  max-height: 0;            
}
   
#stats-container.is-animating {
  transition: max-height 0.6s ease;
  will-change: max-height;
}

#stats-container.expanded {
  max-height: none; /* remove hard cap to prevent clipping on mobile */
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: #86efac;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #000000;
  font-weight: 500;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(134, 239, 172, 0.3);
}

.toggle-btn:focus {
  outline: 3px solid #10b981;
  outline-offset: 2px;
}

.stats-grid-wrapper {
  transform-origin: top center;
  transition: transform 0.6s ease;
}

#stats-container.collapsed .stats-grid-wrapper {
  transform: perspective(600px) rotateX(-90deg);
}

#stats-container.expanded .stats-grid-wrapper {
  transform: perspective(600px) rotateX(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #stats-container,
  .stats-grid-wrapper { transition: none !important; }
}

/* --------------------------------------------- */
/* Mobile Responsive Adjustments                 */
/* --------------------------------------------- */
@media (max-width: 768px) {
  .statistics-header h2 {
    font-size: 1.5rem;
  }
  
  .statistics-header .clarification-text {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
}

/* --------------------------------------------- */
/* About Section (“Baseline”)                     */
/* --------------------------------------------- */
.baseline {
  background-color: #FFEDD2;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  animation: fadeIn 0.8s ease-out;
  color: #000;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.baseline h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #2C3E50;
  font-family: "Orbitron", monospace;
  border-bottom: 2px solid #D2A48C;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.baseline h3 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.4rem;
  color: #3E5770;
  font-family: "Orbitron", monospace;
}

.baseline p {
  font-size: 1rem;
  margin: 0.8rem 0;
  color: #4A4A4A;
  line-height: 1.6;
  max-width: 90%;
}

.baseline code {
  background-color: rgba(230, 230, 230, 0.5);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  color: #D35400;
}

.baseline .formula {
  margin: 1rem 0;
  padding: 0.8rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-left: 3px solid #82A9D1;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 768px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  .about-full-width {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .baseline {
    padding: 1.5rem;
  }
  .baseline h2 {
    font-size: 1.8rem;
  }
  .baseline h3 {
    font-size: 1.3rem;
  }
  .baseline p {
    max-width: 100%;
  }
}

/* --------------------------------------------- */
/* Additional styles for trending indicators     */
/* --------------------------------------------- */
.trend-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.trend-indicator {
  font-size: 0.7rem;
  margin-top: 0.2rem;
  font-family: "Roboto Mono", monospace;
  transition: all 0.3s ease;
}

.trend-up {
  color: #10b981; /* Green color for trending up */
}

.trend-down {
  color: #ef4444; /* Red color for trending down */
}

.trend-stable {
  color: #f59e0b; /* Amber color for stable */
}

@keyframes trendPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.trend-changed {
  animation: trendPulse 1s ease-in-out;
}

/* --------------------------------------------- */
/* Responsive adjustments for header and tokens   */
/* --------------------------------------------- */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  header .logo {
    margin-bottom: 1rem;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  nav ul {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }
  .nav-link {
    font-size: 1rem;
  }

  /* Center the about section on mobile */
  .baseline, .about-full-width {
    text-align: center;
  }
  .about-grid {
    display: block;
  }
  .about-grid > div {
    margin: 0 auto;
  }

  .baseline p, .about-full-width {
    text-align: justify;
    text-justify: inter-word;
  }
  .baseline .formula,
  .baseline .formula code {
    font-size: 0.6rem;
  }
  .chart-legend,
  .chart-legend .legend-item span {
    font-size: 0.4rem;
    white-space: nowrap;
  }
}

/* --------------------------------------------- */
/* Season Details Panel                         */
/* --------------------------------------------- */
.season-details {
  background: linear-gradient(145deg, rgba(58, 58, 58, 0.9), rgba(38, 38, 38, 0.8));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.metrics-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Orbitron', monospace;
  overflow: hidden;
  border-radius: 8px;
}

.metrics-table th,
.metrics-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(130, 169, 209, 0.2);
}

/* Header styling */
.metrics-table thead th {
  background: rgba(130, 169, 209, 0.1);
  color: #B4D7FE;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.metrics-table thead th:first-child {
  text-align: center;
}

/* Metric label column */
.metric-label {
  text-align: left;
  color: #82A9D1;
  font-weight: 500;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  padding-left: 1.5rem;
}

/* Value cells */
.cat-value, .dog-value, .other-value {
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cat-value {
  color: #B8D5A8;
  text-shadow: 0 0 10px rgba(184, 213, 168, 0.5);
}

.dog-value {
  color: #E2E2AA;
  text-shadow: 0 0 10px rgba(226, 226, 170, 0.5);
}

.other-value {
  color: #D8A4C0;
  text-shadow: 0 0 10px rgba(216, 164, 192, 0.5);
}

/* Row hover effects */
.metrics-table tbody tr:hover {
  background: rgba(130, 169, 209, 0.05);
}

/* Performance row styling */
.perf-row td {
  position: relative;
}

/* Animation for value updates */
@keyframes valueUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); filter: brightness(1.3); }
  100% { transform: scale(1); }
}

.value-updated {
  animation: valueUpdate 0.6s ease-in-out;
}

/* --------------------------------------------- */
/* Mobile Components (Hidden by Default)         */
/* --------------------------------------------- */

/* Swipe hint - hidden on desktop */
.swipe-hint {
  display: none;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  font-family: "Roboto Mono", monospace;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile metrics view - hidden on desktop */
.metrics-mobile {
  display: none;
}

.metrics-mobile section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(130, 169, 209, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.metrics-mobile section:last-child {
  margin-bottom: 0;
}

.metrics-mobile h4 {
  margin: 0 0 0.75rem 0;
  color: #82A9D1;
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(130, 169, 209, 0.2);
  padding-bottom: 0.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
}

.metric-row span:first-child {
  color: #B4D7FE;
}

.metric-row span:last-child {
  font-weight: 700;
}

/* Color coded mobile values */
#perf-cat-m, #delta-cat-m, #rate-cat-m { 
  color: #B8D5A8; 
  text-shadow: 0 0 8px rgba(184, 213, 168, 0.4);
}

#perf-dog-m, #delta-dog-m, #rate-dog-m { 
  color: #E2E2AA; 
  text-shadow: 0 0 8px rgba(226, 226, 170, 0.4);
}

#perf-other-m, #delta-other-m, #rate-other-m { 
  color: #D8A4C0; 
  text-shadow: 0 0 8px rgba(216, 164, 192, 0.4);
}

/* --------------------------------------------- */
/* Tablet Responsive (768px and below)           */
/* --------------------------------------------- */
@media (max-width: 768px) {
  /* Prevent horizontal scroll on body */
  body {
    overflow-x: hidden;
  }
  
  /* Reduce container padding */
  .container {
    padding: 0.25rem;
    max-width: 100%;
  }

  /* Adjust season details spacing */
  .season-details {
    padding: 1rem;
    margin: 0.5rem;
    overflow: hidden; /* ADD THIS LINE */
  }
  
.season-details .metrics-table {
  display: table; /* CHANGE from block to table */
  width: 100%; /* Force full width */
  table-layout: fixed; /* ADD THIS - distribute columns evenly */
}
  
  /* Reduce font sizes for space */
  .metrics-table {
    font-size: 0.85rem;
  }
  
  .metrics-table th,
  .metrics-table td {
    padding: 0.5rem;
  }
  
  .cat-value, .dog-value, .other-value {
    font-size: 0.95rem;
  }
  
  .metric-label {
    padding-left: 0.75rem;
  }
}

/* --------------------------------------------- */
/* Phone Responsive (480px and below)            */
/* --------------------------------------------- */
@media (max-width: 480px) {
  /* Hide table and swipe hint */
  .season-details .metrics-table {
    display: none;
  }
  
  /* Show mobile card view */
  .metrics-mobile {
    display: flex;
    flex-direction: column;
  }
  
  /* Adjust season details for card layout */
  .season-details {
    padding: 0.75rem;
    display: block; /* Reset from flex */
  }
  
  /* Smaller padding for mobile cards */
  .metrics-mobile section {
    padding: 0.75rem;
  }
  
  .metric-row {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------- */
/* Landscape Phone Adjustment                    */
/* --------------------------------------------- */
@media (max-width: 768px) and (orientation: landscape) {
  /* Limit height to prevent overflow */
  .season-details {
    max-height: 85vh;
    overflow-y: auto;
    padding: 0.5rem; /* ADD THIS LINE - reduce padding in landscape */
  }
  
  /* Ensure table has minimum width for readability */
  .season-details .metrics-table {
    min-width: 380px; /* ADD THIS LINE - slightly smaller than before */
  }
  
  /* Smaller text in landscape */
  .metrics-table {
    font-size: 0.75rem;
  }
  
  .swipe-hint {
    font-size: 0.65rem;
  }
}

/* --------------------------------------------- */
/* Print Styles                                  */
/* --------------------------------------------- */
@media print {
  .season-details {
    background: white;
    color: black;
    box-shadow: none;
  }
  
  .swipe-hint,
  .metrics-mobile {
    display: none;
  }
  
  .metrics-table {
    display: table;
    page-break-inside: avoid;
  }
}

/* --------------------------------------------- */
/* Image Circle Styles                                  */
/* --------------------------------------------- */
.circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.circle-container::-webkit-scrollbar {
  display: none;
}

.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transform: var(--flip-t, translate3d(0,0,0)) var(--hover-s, scale(1));
  transition: transform 0.8s ease; /* transform-only transition */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: 3px solid #86efac;
  will-change: transform;  
  contain: paint;      
}

.circle:focus-visible {
  outline: 3px solid #86efac;
  outline-offset: 2px;
}

.circle:hover {
  --hover-s: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .circle-container {
    gap: 1rem;
    padding: 0.75rem;
  }
  
  .circle {
    width: 50px;
    height: 50px;
    border: 2px solid #86efac;
  }
}

/* Phone breakpoint */
@media (max-width: 480px) {
  .circle-container {
    gap: 0.75rem;
    padding: 0.5rem;
  }
  
  .circle {
    width: 40px;
    height: 40px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #86efac;
  }
  
  .circle:hover {
    transform: none; /* Disable hover on touch */
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .circle {
    width: 35px;
    height: 35px;
    border: 2px solid #86efac;
  }
  
  .circle-container {
    gap: 0.5rem;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .circle-container {
    padding: 0.25rem;
  }
  
  .circle {
    width: 35px;
    height: 35px;
    border: 2px solid #86efac;
  }
}

/* Accessibility - respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
   .circle {
     transition: none;
   }
  .season-banner::after,
  .season-icon,
  .btn-flash,
  .count-updated,
  .trend-changed,
  .value-updated {
    animation: none;
    transition: none;
  }
}

.season-intensity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
}
.intensity-label { flex: 0 0 auto; }
.intensity-bar-bg {
  flex: 1 1 auto;
  height: 0.75rem;
  background: rgba(255,255,255,0.2);
  border-radius: 0.375rem;
  overflow: hidden;
}
.intensity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FDE68A, #F87171);
  transition: width 0.8s ease;
}
.intensity-percent {
  flex: 0 0 2.5rem;
  text-align: right;
}
@media (max-width: 480px) {
  .season-intensity { font-size: 0.75rem; gap: 0.25rem; }
}

/* ── Forecast Section ─────────────────────────────────────────────────── */
.forecast-section {
  background: rgba(58, 58, 58, 0.9);        /* same dark “card” background */
  border-radius: 16px;                      /* match your other panels */
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.forecast-section .section-title {
  font-family: "Orbitron", monospace;
  color: #82A9D1;
  font-size: 1.8rem;                        /* slightly larger */
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* ── Forecast Cards Grid ───────────────────────────────────────────────── */
.forecast-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

/* Mobile: Stack forecast cards vertically */
@media (max-width: 480px) {
  .forecast-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .forecast-card {
    box-sizing: border-box;  /* Include padding in width */
    width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .forecast-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .forecast-card p {
    font-size: 0.95rem;
    margin: 0.2rem 0;
  }
  
  .forecast-card .ci {
    font-size: 0.8rem;
  }
  
  .forecast-section {
    padding: 1rem;
  }
  
  .forecast-section .section-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
}

/* Even smaller phones */
@media (max-width: 360px) {
  .forecast-card {
    padding: 0.6rem 0.8rem;
  }
  
  .forecast-card h3 {
    font-size: 1rem;
  }
  
  .forecast-card p {
    font-size: 0.9rem;
  }
  
  .forecast-card .ci {
    font-size: 0.75rem;
  }
}

/* Tablet: 2 cards per row */
@media (min-width: 481px) and (max-width: 768px) {
  .forecast-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* Make "Other" card span full width on tablet */
  .forecast-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ── Individual Forecast Card ──────────────────────────────────────────── */
.forecast-card {
  background: rgba(38, 38, 38, 0.8);        /* match stat-card BG */
  border-radius: 12px;                      
  padding: 1rem;
  text-align: center;
  font-family: "Orbitron", monospace;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.forecast-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.forecast-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  text-transform: capitalize;
  color: #B4D7FE;
}

.forecast-card p {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #ffffff;
}

.forecast-card .ci {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

/* ── Timestamp at Bottom ───────────────────────────────────────────────── */
.forecast-timestamp {
  margin-top: 1rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 481px) and (max-width: 768px) {
  .swipe-hint { display: block; }
}

/* --------------------------------------------- */
/* Season Forecast (next 24h) - Panel Style     */
/* --------------------------------------------- */

/* Main container - match .forecast-section exactly */
.season-forecast {
  background: rgba(58, 58, 58, 0.9);        /* Same dark panel background */
  border-radius: 16px;                      /* Same rounded corners */
  padding: 1.5rem;                          /* Same padding */
  margin: 2rem 0;                           /* Same vertical margin */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Same shadow */
  display: block;                           /* Reset from flex */
  text-align: center;                       /* Center everything */
}

/* When static and rolling Season Forecast panels are both present,
   make the spacing between them a bit tighter so they read as a pair */
#season-forecast-static { margin-bottom: 1rem; }

@media (max-width: 480px) {
  #season-forecast-static { margin-bottom: 0.75rem; }
}

/* Title - match .forecast-section .section-title exactly */
.season-forecast .sf-title {
  font-family: "Orbitron", monospace;       /* Same font */
  color: #82A9D1;                           /* Same blue color */
  font-size: 1.8rem;                        /* Same size as Next Hour */
  margin-bottom: 1rem;                      /* Same spacing below */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Same shadow */
  text-align: center;                       /* Ensure centered */
  display: block;                           /* Full width block */
  font-weight: 700;                         /* Match weight */
}

/* Badge container */
.sf-badge {
  --ring: rgba(255,255,255,0.25);
  --bg1: #374151;
  --bg2: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;                     /* Slightly larger padding */
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;                          /* Slightly larger */
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  margin: 0 auto 1rem;                      /* Center the badge */
}

.sf-badge .sf-emoji { 
  font-size: 1.3rem;                        /* Slightly larger emoji */
}

.sf-badge .sf-text {
  color: #ffffff;                           /* Ensure white text */
}

.sf-badge .sf-prob { 
  font-family: "Roboto Mono", monospace; 
  font-size: 0.9rem; 
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.85);
}

/* Meta information below badge */
.season-forecast-meta {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);        /* Slightly muted */
  text-align: center;
  margin-top: 0.5rem;
}

.season-forecast-meta strong {
  color: #ffffff;                           /* White for emphasis */
  font-weight: 600;
}

.forecast-timestamp {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.5rem;
}

/* Themed variants */
.sf-badge.neutral,
.sf-badge[data-season="neutral"] {
  --bg1:#4b5563; --bg2:#111827; --ring: rgba(148,163,184,0.5);
}

.sf-badge.cat,
.sf-badge[data-season="cat"] {
  --bg1:#065f46; --bg2:#10b981; --ring: rgba(16,185,129,0.6);
}

.sf-badge.dog,
.sf-badge[data-season="dog"] {
  --bg1:#7c2d12; --bg2:#f59e0b; --ring: rgba(245,158,11,0.6);
}

.sf-badge.other,
.sf-badge[data-season="other"] {
  --bg1:#3f2d20; --bg2:#a16207; --ring: rgba(234,179,8,0.6);
}

/* Focus styles */
.sf-badge:focus-visible {
  outline: 3px solid #82A9D1;
  outline-offset: 2px;
}

/* Update animation */
.sf-badge.updated {
  animation: sfPulse 800ms ease;
}

@keyframes sfPulse {
  0%   { box-shadow: 0 0 0 0 rgba(130,169,209,0.7); transform: scale(1.00); }
  60%  { box-shadow: 0 0 0 10px rgba(130,169,209,0.0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(130,169,209,0.0); transform: scale(1.00); }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .season-forecast {
    padding: 1rem;
  }
  
  .season-forecast .sf-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  .sf-badge {
    white-space: normal;     /* Allow text wrapping */
    max-width: calc(100% - 2rem);  /* Prevent edge overflow */
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .sf-badge .sf-emoji {
    font-size: 1.1rem;
  }
  
  .season-forecast-meta {
    font-size: 0.8rem;
  }
}

/* Even smaller phones */
@media (max-width: 360px) {
  .season-forecast .sf-title {
    font-size: 1.2rem;
  }
  
  .sf-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  
  .season-forecast-meta {
    font-size: 0.75rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sf-badge.updated { 
    animation: none; 
  }
}

/* Replace the existing pool-counters-section styles (starting around line 1345) with these: */

/* --------------------------------------------- */
/* Pool Counter Section - Pump.fun Only          */
/* --------------------------------------------- */
.pool-counters-section {
  background: rgba(58, 58, 58, 0.9);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pool-counters-section .section-title {
  font-family: "Orbitron", monospace;
  color: #82A9D1;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-weight: 700;
}

/* Single card container */
.pool-single-card {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Single pump card */
.pool-card-solo {
  background: rgba(58, 58, 58, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 2px solid transparent;
  max-width: 600px;
  width: 100%;
}

/* Highlight when in season */
.pool-card-solo.leading {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2), 0 8px 24px rgba(0,0,0,0.35);
  animation: seasonPulse 2s ease-in-out infinite;
}

@keyframes seasonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Card header */
.pool-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pool-emoji { 
  font-size: 2rem; 
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pool-title {
  margin: 0;
  padding: 0;
  font-family: "Orbitron", monospace;
  font-size: 1.3rem;
  color: #B4D7FE;
  text-align: center;
}

/* Main metric display */
.pool-main-metric {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pool-count {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Orbitron", monospace;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.pool-count.updated {
  animation: countUpdate 0.6s ease-in-out;
}

@keyframes countUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #10b981; }
  100% { transform: scale(1); }
}

.pool-label {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* Stats grid */
.pool-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(130, 169, 209, 0.2);
}

.pool-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.pool-stat:hover {
  background: rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  color: #82A9D1;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: "Orbitron", monospace;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
}

/* Lift percentage styling */
#pool-pump-lift {
  transition: color 0.3s ease;
}

#pool-pump-lift.positive {
  color: #10b981;
}

#pool-pump-lift.negative {
  color: #ef4444;
}

#pool-pump-lift.neutral {
  color: rgba(255, 255, 255, 0.75);
}

/* Season line */
.pool-season-line {
  margin-top: 1rem;
  text-align: center;
  font-family: "Orbitron", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pool-season-line.active-season {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  animation: seasonLineGlow 2s ease-in-out infinite;
}

@keyframes seasonLineGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
}

/* Explanation section */
.pool-explanation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(130, 169, 209, 0.2);
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.pool-explanation p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.pool-explanation strong {
  color: #82A9D1;
  font-weight: 600;
}

.pool-explanation .muted {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}

/* Tablet responsive */
@media (max-width: 768px) {
  .pool-card-solo {
    padding: 1rem;
  }
  
  .pool-count {
    font-size: 2.5rem;
  }
  
  .pool-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .pool-season-line {
    font-size: 1rem;
    padding: 0.5rem;
  }
  
  .pool-emoji {
    font-size: 1.5rem;
  }
  
  .pool-title {
    font-size: 1.1rem;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .pool-counters-section {
    padding: 1rem;
  }
  
  .pool-counters-section .section-title {
    font-size: 1.4rem;
  }
  
  .pool-title {
    font-size: 1rem;
  }
  
  .pool-count {
    font-size: 2rem;
  }
  
  .pool-explanation {
    font-size: 0.7rem;
  }
  
  .pool-explanation p {
    margin: 0.3rem 0;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .stat-value {
    font-size: 0.9rem;
  }
  
  .pool-season-line {
    font-size: 0.9rem;
  }
}

/* Even smaller phones */
@media (max-width: 360px) {
  .pool-card-solo {
    padding: 0.75rem;
  }
  
  .pool-count {
    font-size: 1.75rem;
  }
  
  .pool-title {
    font-size: 0.9rem;
  }
  
  .pool-emoji {
    font-size: 1.25rem;
  }
  
  .pool-explanation {
    font-size: 0.65rem;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .pool-counters-section {
    padding: 0.75rem;
  }
  
  .pool-card-solo {
    padding: 0.75rem;
  }
  
  .pool-count {
    font-size: 1.5rem;
  }
  
  .pool-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pool-card-solo.leading,
  .pool-emoji,
  .pool-count.updated,
  .pool-season-line.active-season {
    animation: none;
  }
}
