/* =================================================
   Open Community Gauntlet v1 — Redesigned Styles
   Theme: Circuit Board — clean, sharp, electronic
   ================================================= */

/* ---- DESIGN TOKENS ---- */
:root {
  --g1-bg:            #f5f0e8;
  --g1-card:          #faf8f2;
  --g1-dark:          #1a1a1a;
  --g1-dark-mid:      #2e2e2e;
  --g1-border:        #1a1a1a;
  --g1-border-light:  #bbbbaa;

  --g1-green:         #3a7d44;
  --g1-green-dim:     #2c5f35;
  --g1-green-bg:      #e6f4ea;
  --g1-green-bright:  #4caf50;

  --g1-gold:          #b8911f;
  --g1-gold-bg:       #fdf6e3;
  --g1-gold-bright:   #f0c040;

  --g1-red:           #c62828;
  --g1-red-bg:        #fdecea;

  --g1-text:          #1a1a1a;
  --g1-text-muted:    #666666;
  --g1-text-light:    #999999;

  --g1-radius:        0px;   /* brutalist: sharp corners everywhere */
  --g1-shadow-sm:     2px 2px 0 #1a1a1a;
  --g1-shadow-card:   4px 4px 0 #1a1a1a;
  --g1-font-mono:     'Courier New', 'Lucida Console', monospace;
}

/* ==============================
   HERO SECTION
   ============================== */
.g1-page-wrapper {
  display: flex;
  flex-direction: column;
  padding: 0px 16px 0 16px;
}

.g1-hero {
  width: 100%;
  max-width: 1100px;
  padding: 0;
  border: 2px solid var(--g1-border);
  border-bottom: 4px solid var(--g1-green);
  box-shadow: var(--g1-shadow-card);
  margin: 0 auto;
}

.g1-hero-inner {
  background-color: var(--g1-dark);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(58,125,68,0.08) 39px,
      rgba(58,125,68,0.08) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(58,125,68,0.08) 39px,
      rgba(58,125,68,0.08) 40px
    );
  color: #f5f0e8;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 250px;
}

/* Logo panel */
.g1-hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border-right: 2px solid var(--g1-green);
  min-width: 200px;
}

.g1-hero-logo {
  width: 256px;
  height: 256px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(58, 125, 68, 0.6));
}

/* Title + countdown panel */
.g1-hero-content {
  flex: 1;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.g1-hero-title {
  font-size: 1.9em;
  font-weight: 900;
  font-family: var(--g1-font-mono);
  color: #f5f0e8;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.g1-hero-title span {
  color: var(--g1-green-bright);
}

.g1-hero-subtitle {
  font-size: 0.8em;
  color: #888;
  font-family: var(--g1-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: -10px 0 0 0;
}

/* Countdown row */
.g1-countdown-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.g1-countdown-cell {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(58,125,68,0.4);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.g1-countdown-label {
  font-size: 0.68em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--g1-font-mono);
}

.g1-countdown-label--next { color: #81c784; }
.g1-countdown-label--current { color: #ef9a9a; }

.g1-countdown-value {
  font-size: 1.15em;
  font-family: var(--g1-font-mono);
  font-weight: bold;
  color: #f5f0e8;
  letter-spacing: 0.06em;
}

/* ==============================
   STAGES / TIMELINE
   ============================== */
.g1-stages-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--g1-dark);
  border: 2px solid var(--g1-border);
  box-shadow: var(--g1-shadow-card);
}

.g1-stages-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px;
}

.g1-stages-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Connector line between stages — pseudo element on the track */
.g1-stage-track {
  display: flex;
  align-items: center;
  position: relative;
}

.g1-stage-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g1-border-light);
  z-index: 0;
}

.g1-stage-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  background: var(--g1-dark-mid);
  border-right: 1px solid rgba(255,255,255,0.08);
  min-width: 120px;
  cursor: default;
  transition: background 0.15s;
}

.g1-stage-item:last-child { border-right: none; }

.g1-stage-item--past {
  background: #252525;
}

.g1-stage-item--active {
  background: rgba(58,125,68,0.18);
  border-top: 3px solid var(--g1-green-bright);
}

.g1-stage-item--locked {
  opacity: 0.48;
}

.g1-stage-item--selected {
  outline: 2px solid var(--g1-gold-bright);
  outline-offset: -2px;
}

.g1-stage-item:not(.g1-stage-item--locked):hover {
  background: rgba(255,255,255,0.06);
}

.g1-stage-item--selected:not(.g1-stage-item--locked):hover {
  background: rgba(240,192,64,0.08);
}

.g1-stage-dot {
  width: 10px;
  height: 10px;
  background: var(--g1-border-light);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.g1-stage-item--past .g1-stage-dot   { background: #777; }
.g1-stage-item--active .g1-stage-dot { background: var(--g1-green-bright); }

.g1-stage-id {
  font-family: var(--g1-font-mono);
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
}

.g1-stage-name {
  font-size: 0.78em;
  font-weight: 600;
  color: #d0cfc5;
  text-align: center;
  margin-top: 2px;
  max-width: 110px;
  word-wrap: break-word;
}

.g1-stage-item--active .g1-stage-name { color: #c8f0ca; font-weight: 700; }

.g1-stage-badge {
  font-size: 0.62em;
  padding: 2px 6px;
  margin-top: 4px;
  font-family: var(--g1-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.g1-stage-badge--active  { background: var(--g1-green); color: #fff; }
.g1-stage-badge--locked  { background: #555; color: #aaa; }

/* ==============================
   CONTAINER
   ============================== */
.g1-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 24px;
}

/* ==============================
   RULES / INFO ACCORDION
   ============================== */
.g1-accordion {
  border: 2px solid var(--g1-border);
  background: var(--g1-card);
  box-shadow: var(--g1-shadow-card);
}

.g1-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--g1-dark);
  color: #f5f0e8;
  font-size: 1em;
  font-weight: 700;
  font-family: var(--g1-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.g1-accordion-trigger:hover { background: var(--g1-dark-mid); }

.g1-accordion-trigger .g1-chevron {
  font-size: 0.8em;
  transition: transform 0.3s;
}

.g1-accordion-trigger.expanded .g1-chevron {
  transform: rotate(180deg);
}

.g1-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 20px;
}

.g1-accordion-body.expanded {
  max-height: 4000px;
  padding: 20px;
}

/* Rules cards grid */
.g1-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .g1-cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .g1-cards-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.g1-card {
  background: var(--g1-bg);
  border: 1px solid var(--g1-border);
  padding: 16px;
}

.g1-card h3 {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--g1-font-mono);
  color: var(--g1-text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g1-green);
}

.g1-card h4 {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g1-text-muted);
  margin: 12px 0 6px;
}

.g1-card ul {
  margin: 6px 0;
  padding-left: 18px;
}

.g1-card li {
  font-size: 0.85em;
  line-height: 1.5;
  margin-bottom: 4px;
}

.g1-card p {
  font-size: 0.85em;
  line-height: 1.5;
  margin: 6px 0;
}

.g1-card code {
  display: block;
  font-family: var(--g1-font-mono);
  font-size: 0.8em;
  background: var(--g1-dark);
  color: var(--g1-green-bright);
  padding: 10px 14px;
  margin: 8px 0;
  border-left: 3px solid var(--g1-green);
}

.g1-card strong { color: var(--g1-text); }

/* ==============================
   LEADERBOARD ZONE
   ============================== */
.g1-lb-zone {
  margin-top: 24px;
}

/* Challenge selector */
.g1-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.g1-selector-label {
  font-family: var(--g1-font-mono);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  white-space: nowrap;
}

.g1-selector {
  padding: 7px 12px;
  border: 2px solid var(--g1-border);
  background: var(--g1-dark);
  color: #f5f0e8;
  font-size: 0.9em;
  font-family: var(--g1-font-mono);
  cursor: pointer;
  font-weight: bold;
  min-width: 260px;
}

.g1-selector:focus { outline: 2px solid var(--g1-green); }

/* Tab bar */
.g1-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.g1-tab-btn {
  padding: 9px 18px;
  background: var(--g1-bg);
  border: 1px solid var(--g1-border);
  border-bottom: none;
  font-size: 0.82em;
  font-family: var(--g1-font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  color: var(--g1-text-muted);
  transition: background 0.15s, color 0.15s;
  line-height: 1.3;
  text-align: center;
}

.g1-tab-btn:hover {
  background: var(--g1-dark);
  color: #f5f0e8;
}

.g1-tab-btn.active {
  background: var(--g1-dark);
  color: #f5f0e8;
  border-bottom: 3px solid var(--g1-green-bright);
}

.g1-tab-content { display: none; }
.g1-tab-content.active { display: block; }

/* ==============================
   WEEK SUMMARY (Champions / Pioneers)
   ============================== */
.g1-summary {
  margin-bottom: 28px;
  border: 2px solid var(--g1-border);
  background: var(--g1-card);
  box-shadow: var(--g1-shadow-card);
}

.g1-summary-header {
  background: var(--g1-dark);
  color: #f5f0e8;
  padding: 8px 18px;
  font-family: var(--g1-font-mono);
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.g1-summary-body { padding: 20px; }

.g1-summary-row { margin-bottom: 24px; }
.g1-summary-row:last-child { margin-bottom: 0; }

.g1-summary-row h3 {
  font-family: var(--g1-font-mono);
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g1-text-muted);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g1-border-light);
}

/* Champions */
.g1-champions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.g1-champion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--g1-bg);
  border: 1px solid var(--g1-border);
  padding: 16px 20px;
  min-width: 140px;
  box-shadow: var(--g1-shadow-sm);
  transition: transform 0.15s;
}

.g1-champion-card:hover { transform: translateY(-2px); }

.g1-champion-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.g1-champion-name {
  font-weight: 700;
  text-align: center;
  font-size: 0.9em;
  color: var(--g1-text);
  margin-bottom: 3px;
}

.g1-champion-score {
  font-family: var(--g1-font-mono);
  font-size: 0.75em;
  color: var(--g1-text-muted);
}

/* Pioneers */
.g1-pioneers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.g1-pioneer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--g1-bg);
  border: 1px solid var(--g1-border);
  padding: 14px 16px;
  box-shadow: var(--g1-shadow-sm);
  transition: transform 0.15s;
}

.g1-pioneer-card:hover { transform: translateY(-2px); }

.g1-pioneer-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}

.g1-pioneer-metric {
  font-family: var(--g1-font-mono);
  font-size: 0.68em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--g1-green);
  margin-bottom: 4px;
}

.g1-pioneer-name {
  font-weight: 700;
  text-align: center;
  font-size: 0.85em;
  color: var(--g1-text);
  margin-bottom: 2px;
}

.g1-pioneer-score {
  font-family: var(--g1-font-mono);
  font-size: 0.72em;
  color: var(--g1-text-muted);
}

/* ==============================
   GAUNTLET CHAMPIONS (overall tab)
   ============================== */
.g1-gauntlet-champions {
  margin-bottom: 28px;
  border: 2px solid var(--g1-border);
  background: var(--g1-card);
  box-shadow: var(--g1-shadow-card);
}

.g1-gauntlet-champions-header {
  background: var(--g1-dark);
  color: #f5f0e8;
  padding: 8px 18px;
  font-family: var(--g1-font-mono);
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.g1-gauntlet-champions-body {
  padding: 20px;
}

.g1-gauntlet-champions-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==============================
   TABLES
   ============================== */
.g1-table-wrapper {
  overflow-x: auto;
  border: 2px solid var(--g1-border);
  box-shadow: var(--g1-shadow-card);
  margin-bottom: 16px;
}

.g1-table {
  width: 100%;
  border-collapse: collapse;
  background: #faf8f2;
  font-size: 0.9em;
}

.g1-table thead tr th {
  background: var(--g1-dark);
  color: #f0ede4;
  font-family: var(--g1-font-mono);
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 10px;
  text-align: left;
  border: none;
  border-right: 1px solid #333;
  white-space: nowrap;
}

.g1-table thead tr th:last-child { border-right: none; }

/* Rank col */
.g1-table th.g1-col-rank,
.g1-table td.g1-col-rank {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-family: var(--g1-font-mono);
}

/* Numeric cols */
.g1-table td.g1-col-num {
  font-family: var(--g1-font-mono);
  text-align: right;
  white-space: nowrap;
}

/* Player col */
.g1-table td.g1-col-player {
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Date col */
.g1-table td.g1-col-date {
  font-size: 0.82em;
  color: var(--g1-text-muted);
  font-family: var(--g1-font-mono);
  white-space: nowrap;
}

/* Body rows */
.g1-table tbody tr {
  border-bottom: 1px solid #e0ddd4;
  transition: background 0.12s;
}

.g1-table tbody tr:hover {
  background: #fdf6dc;
}

.g1-table tbody tr:nth-child(even) { background: #f5f3ea; }
.g1-table tbody tr:nth-child(even):hover { background: #fdf6dc; }

/* Top 3 */
.g1-table tbody tr:first-child  { background: #fffbd0; font-weight: 700; }
.g1-table tbody tr:nth-child(2) { background: #f7f7f7; }
.g1-table tbody tr:nth-child(3) { background: #fff4e6; }
.g1-table tbody tr:first-child:hover,
.g1-table tbody tr:nth-child(2):hover,
.g1-table tbody tr:nth-child(3):hover { background: #fdf6dc; }

/* Cells */
.g1-table td {
  padding: 9px 10px;
  border-right: 1px solid #e0ddd4;
  vertical-align: middle;
}

.g1-table td:last-child { border-right: none; }

/* Highlighted metric column */
.g1-table .g1-col-metric-highlight {
  background: #e8f5e9 !important;
  font-weight: 800;
  font-family: var(--g1-font-mono);
  color: var(--g1-green-dim);
  border-left: 2px solid var(--g1-green) !important;
  border-right: 2px solid var(--g1-green) !important;
  text-align: right;
}

.g1-table thead .g1-col-metric-highlight {
  background: var(--g1-green) !important;
  color: #fff !important;
}

/* Total score col */
.g1-table td.g1-col-total {
  font-family: var(--g1-font-mono);
  font-weight: 800;
  font-size: 1em;
  color: var(--g1-green-dim);
  text-align: right;
}

/* Score sub-value (raw metric under points) */
.g1-sub-value {
  display: block;
  font-size: 0.72em;
  color: var(--g1-text-muted);
  font-family: var(--g1-font-mono);
  font-weight: 400;
  font-style: italic;
  text-align: right;
}

/* Metric range header bar */
.g1-range-bar {
  color: #f0ede4;
  text-align: center;
  font-family: var(--g1-font-mono);
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-bottom: 2px solid var(--g1-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.g1-range-val {
  background: rgba(58,125,68,0.25);
  color: var(--g1-green-bright);
  font-size: 1.1em;
  letter-spacing: 0.08em;
  padding: 2px 12px;
}

/* Note text */
.g1-note {
  font-size: 0.8em;
  color: #888;
  font-style: italic;
  margin-top: 10px;
  padding-left: 2px;
}

/* Last update bar */
.g1-last-update {
  font-size: 0.78em;
  color: #666;
  font-family: var(--g1-font-mono);
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #333;
}

/* Misc */
.g1-loading { text-align: center; color: var(--g1-text-muted); font-style: italic; padding: 20px; }
.g1-error   { text-align: center; color: var(--g1-red);         font-style: italic; padding: 20px; }
.g1-no-data { text-align: center; color: var(--g1-text-muted);  font-style: italic; padding: 20px; }

/* ==============================
   JS-GENERATED TABLE CELL OVERRIDES
   Matches the class names emitted by the inline JS renderer.
   ============================== */

/* Reset the aggressive global table styles from base gauntlet.css that
   would bleed in if that file is loaded. We scope everything to .g1-table. */

.g1-table th,
.g1-table td {
  border: none;
  padding: 9px 10px;
  transition: none;
}

.g1-table thead th {
  background: var(--g1-dark);
  color: #f0ede4;
  font-family: var(--g1-font-mono);
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-right: 1px solid #333;
}

.g1-table thead th::after { display: none; }

.g1-table td.rank {
  font-weight: 700;
  text-align: center;
  width: 40px;
  font-family: var(--g1-font-mono);
  background: rgba(0,0,0,0.04);
  color: var(--g1-text);
}

.g1-table td.player {
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--g1-text);
}

.g1-table td.score {
  text-align: right;
  font-family: var(--g1-font-mono);
  font-weight: 700;
  background: none;
  width: 88px;
  color: var(--g1-text);
}

.g1-table td.total-score {
  text-align: right;
  font-family: var(--g1-font-mono);
  font-weight: 800;
  font-size: 1em;
  color: var(--g1-green-dim);
  background: rgba(58,125,68,0.08);
  width: 88px;
}

.g1-table td.scores-detail {
  font-family: var(--g1-font-mono);
  font-size: 0.8em;
  color: var(--g1-text-muted);
  white-space: nowrap;
}

.g1-table td.score-column {
  text-align: right;
  font-family: var(--g1-font-mono);
  font-size: 0.9em;
  background: none;
  width: 80px;
}

.g1-table td.date {
  font-size: 0.8em;
  color: var(--g1-text-muted);
  font-family: var(--g1-font-mono);
  white-space: nowrap;
  width: 68px;
  background: none;
  font-style: normal;
}

.g1-table .contribution-value {
  font-style: italic;
  color: var(--g1-text-muted);
  font-size: 0.72em;
  display: block;
  text-align: right;
}

/* Metric highlight inside JS-generated metric tables */
.g1-table td.highlight-metric {
  background: var(--g1-green-bg) !important;
  font-weight: 800;
  font-family: var(--g1-font-mono);
  color: var(--g1-green-dim);
  border-left: 2px solid var(--g1-green) !important;
  border-right: 2px solid var(--g1-green) !important;
  text-align: right;
}

.g1-table th.highlight-metric {
  background: var(--g1-green) !important;
  color: #fff !important;
  text-shadow: none !important;
}

.g1-table th.highlight-metric::before { content: ''; margin-right: 0; }

/* loading / error cells */
.g1-table td.loading {
  text-align: center;
  color: var(--g1-text-muted);
  font-style: italic;
  padding: 20px;
  background: none;
}

.g1-table td.error {
  text-align: center;
  color: var(--g1-red);
  font-style: italic;
  padding: 20px;
  background: none;
}

/* JS-generated champion/pioneer cards */
.champion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--g1-bg);
  border: 1px solid var(--g1-border);
  padding: 16px 20px;
  min-width: 140px;
  box-shadow: var(--g1-shadow-sm);
  transition: transform 0.15s;
}

.champion-card:hover { transform: translateY(-2px); }

.champion-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.champion-name {
  font-weight: 700;
  text-align: center;
  font-size: 0.9em;
  color: var(--g1-text);
  margin-bottom: 3px;
}

.champion-score {
  font-family: var(--g1-font-mono);
  font-size: 0.75em;
  color: var(--g1-text-muted);
}

.pioneer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--g1-bg);
  border: 1px solid var(--g1-border);
  padding: 14px 16px;
  box-shadow: var(--g1-shadow-sm);
  transition: transform 0.15s;
}

.pioneer-card:hover { transform: translateY(-2px); }

.pioneer-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}

.pioneer-metric {
  font-family: var(--g1-font-mono);
  font-size: 0.68em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--g1-green);
  margin-bottom: 4px;
}

.pioneer-name {
  font-weight: 700;
  text-align: center;
  font-size: 0.85em;
  color: var(--g1-text);
  margin-bottom: 2px;
}

.pioneer-score {
  font-family: var(--g1-font-mono);
  font-size: 0.72em;
  color: var(--g1-text-muted);
}

.no-data {
  text-align: center;
  padding: 20px;
  color: var(--g1-text-muted);
  font-style: italic;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .g1-hero-inner {
    flex-direction: column;
  }

  .g1-hero-logo-panel {
    border-right: none;
    border-bottom: 2px solid var(--g1-green);
    padding: 16px;
  }

  .g1-hero-logo { width: 80px; height: 80px; }

  .g1-hero-title { font-size: 1.3em; }

  .g1-stages-timeline {
    gap: 0;
    border-bottom: none;
  }

  .g1-stage-item { min-width: 90px; padding: 8px 10px; }

  .g1-tabs { gap: 0; }

  .g1-tab-btn {
    padding: 8px 10px;
    font-size: 0.72em;
    flex: 1;
    min-width: 70px;
  }

  .g1-selector { min-width: 0; width: 100%; }

  .g1-champions { gap: 10px; }
  .g1-champion-img { width: 60px; height: 60px; }

  .g1-pioneer-img { width: 44px; height: 44px; }
}

/* ==============================
   POINTS PROGRESSION CHART
   ============================== */
.g1-progression-chart {
  background: var(--g1-dark);
  border-bottom: 2px solid var(--g1-green);
  box-shadow: var(--g1-shadow-card);
  padding: 0;
  overflow: hidden;
}

.g1-progression-chart-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #f5f0e8;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
  text-align: left;
}

.g1-progression-chart-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.g1-progression-chart-header .g1-chevron {
  font-size: 0.8em;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.g1-progression-chart-header.expanded .g1-chevron {
  transform: rotate(180deg);
}

.g1-progression-chart-title {
  font-family: var(--g1-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g1-green-bright);
}

.g1-progression-chart-wrap {
  position: relative;
  height: 320px;
  padding: 0 16px 16px;
  overflow: hidden;
  transition: height 0.25s ease, padding 0.25s ease;
  box-sizing: border-box;
}

.g1-progression-chart.collapsed .g1-progression-chart-wrap {
  height: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .g1-progression-chart-wrap { height: 260px; }
}

/* ==============================
   BEST REVEALS GALLERY
   ============================== */
.g1-cards-grid--single {
  grid-template-columns: 1fr !important;
}

.g1-reveals-gallery {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0;
  align-items: flex-start;
}

.g1-reveals-item {
  margin: 0;
}

.g1-reveals-item--blueprint {
  flex: 0 0 auto;
  width: 200px;
}

.g1-reveals-item--screenshot {
  flex: 1;
  min-width: 280px;
}

.g1-reveals-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--g1-border);
  box-shadow: var(--g1-shadow-sm);
}

.g1-reveals-note {
  font-size: 0.78em;
  color: var(--g1-text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   DARK MODE OVERRIDES — gauntlet-ocg1
   ═══════════════════════════════════════ */

html[data-theme="dark"] .g1-table {
  background: #1c1d22;
}

html[data-theme="dark"] .g1-table tbody tr {
  border-bottom-color: #383846;
}

html[data-theme="dark"] .g1-table tbody tr:nth-child(even) {
  background: #22232a;
}

html[data-theme="dark"] .g1-table tbody tr:nth-child(odd) {
  background: #1c1d22;
}

html[data-theme="dark"] .g1-table tbody tr:first-child {
  background: #1c1c10;
}

html[data-theme="dark"] .g1-table tbody tr:nth-child(2) {
  background: #1e1e24;
}

html[data-theme="dark"] .g1-table tbody tr:nth-child(3) {
  background: #1c1a12;
}

html[data-theme="dark"] .g1-table tbody tr:hover,
html[data-theme="dark"] .g1-table tbody tr:first-child:hover,
html[data-theme="dark"] .g1-table tbody tr:nth-child(2):hover,
html[data-theme="dark"] .g1-table tbody tr:nth-child(3):hover {
  background: #2a2b33;
}

html[data-theme="dark"] .g1-table td {
  border-right-color: #383846;
  color: #d4d0c8;
}

html[data-theme="dark"] .g1-table td.rank {
  background: rgba(255, 255, 255, 0.04);
  color: #d4d0c8;
}

html[data-theme="dark"] .g1-table td.total-score {
  background: rgba(58, 125, 68, 0.12);
}

html[data-theme="dark"] .g1-table td.highlight-metric {
  background: rgba(58, 125, 68, 0.15) !important;
}

html[data-theme="dark"] .g1-last-update {
  color: #888;
  border-top-color: #3a3a4a;
}

/* Discarded entries */
.g1-discarded-separator td {
  color: #aaa;
  text-align: center;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 0 !important;
}

.g1-discarded-row td {
  font-style: italic;
  font-size: 0.72em;
  color: #999 !important;
  background: #f0f0f0 !important;
}

html[data-theme="dark"] .g1-discarded-row td {
  color: #666 !important;
  background: #222 !important;
}

html[data-theme="dark"] .g1-discarded-separator td {
  background: #2a2a3a !important;
  color: #888;
  border-bottom-color: #888;
}
