/* Global page styling */
body {
  margin: 0;
  font-family: 'Cinzel', serif;
  background-color: rgba(0, 15, 40, 0.99);
  color: gold;
  text-align: center;
}

header {
  padding: 30px 20px 10px;
}

header h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #a0a9b8, #d0d8e8, #a0a9b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    1px 1px 2px rgba(0,0,0,0.5);
}

#last-updated {
  font-size: 0.8rem;
  color: #ccc;
}

/* Layout for the gauge cards */
.gauge-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px 40px;
}

.gauge-card {
  background: rgba(0, 15, 40, 0.9);
  border-radius: 18px;
  padding: 10px;
  box-shadow: inset 2px 2px 6px rgba(255, 255, 255, 0.05),
              inset -2px -2px 6px rgba(0, 0, 0, 0.4),
              0 0 12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.gauge-card:hover {
  transform: scale(1.03);
  box-shadow: 
    0 0 20px rgba(192,192,192,0.5),  /* soft grey glow */
    inset 2px 2px 6px rgba(255, 255, 255, 0.05),
    inset -2px -2px 6px rgba(0, 0, 0, 0.4);
}


.suits {
  font-size: 1.3rem;
  margin: 4px 0 6px;
  text-shadow: 0 0 6px #000;
  color: gold;
  user-select: none;
}

.player-label {
  font-size: 1.2rem;
  background: linear-gradient(180deg, #fff8dc, #ffd700, #fff2b2); /* bright gold gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.8),  /* soft golden glow */
    0 0 12px rgba(255, 255, 150, 0.2); /* larger glow for brightness */
  margin-bottom: 6px;
  user-select: none;
}

.player-score {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 6px;
  user-select: none;
}

.player-score.positive {
  color: limegreen;
}
.player-score.negative {
  color: red;
}

/* Gauge wrapper to center the chart */
.gauge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 6px 0;
}

.gauge-wrapper > div {
  margin: 0 auto;
}

/* Footer info and error box */
.refresh-info {
  margin: 10px 0 30px;
  font-size: 0.7rem;
  color: #aaa;
}

.error-msg {
  color: red;
  font-size: 1rem;
  margin-top: 20px;
}
