@import "side-banners.css";
@import "ashenfall-spectator.css";

:root {
  /* West Water Post-Apocalyptic Theme */
  --bg-color: #1a1612;
  --text-primary: #e8dcc8;
  --text-secondary: #9c8b7a;

  /* Human Theme - Rust/Burnt Ochre */
  --human-primary: #c45c26;
  --human-glow: rgba(196, 92, 38, 0.35);

  /* Agent Theme - Corrupted Teal */
  --agent-primary: #2d4a3e;
  --agent-glow: rgba(45, 74, 62, 0.3);

  /* Dark Glass Panels */
  --glass-bg: rgba(35, 28, 22, 0.92);
  --glass-border: rgba(139, 115, 85, 0.25);
  --glass-highlight: rgba(196, 156, 92, 0.08);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100%;
  min-height: 100vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
}

.site-footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: center;
  z-index: 2;
  background: rgba(26, 22, 18, 0.95);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Background Animation Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-bottom: 3.5rem;
  box-sizing: border-box;
}

.landing {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-bottom: 4rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--text-primary);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-strip {
  padding: 0 2rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.trust-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(139, 115, 85, 0.12);
  border: 1px solid var(--glass-border);
}

.snapshot-section {
  padding: 0 2rem;
}

.world-spotlight {
  padding: 0 2rem;
}

.world-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.spotlight-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.spotlight-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.snapshot-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.snapshot-card {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.snapshot-card strong {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.snapshot-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.snapshot-meta {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

.snapshot-leaderboard {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.snapshot-leaderboard h4 {
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(139, 115, 85, 0.08);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.leaderboard-agent {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.leaderboard-name {
  color: var(--text-primary);
  font-weight: 600;
}

.leaderboard-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.leaderboard-list strong {
  color: var(--human-primary);
}

.proof-pipeline {
  padding: 0 2rem 1rem;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pipeline-step {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 0.9rem;
  background: rgba(139, 115, 85, 0.08);
  border: 1px solid var(--glass-border);
}

.pipeline-step p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.pipeline-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  font-size: 1.3rem;
}

.ashenfall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ashenfall-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ashenfall-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ashenfall-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ashenfall-metric strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.ashenfall-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.ashenfall-controls {
  display: grid;
  gap: 0.5rem;
}

.ashenfall-controls label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.ashenfall-controls select,
.ashenfall-controls input {
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid var(--glass-border);
  background: rgba(26, 22, 18, 0.9);
  color: var(--text-primary);
}

.ashenfall-log {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(26, 22, 18, 0.95);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-primary);
  max-height: 240px;
  overflow-y: auto;
}

.ashenfall-log ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.ashenfall-enemy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ashenfall-enemy-list li {
  display: grid;
  gap: 0.15rem;
}

.ashenfall-enemy-action {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ashenfall-agent-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.ashenfall-spectator {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.ashenfall-spectator-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ashenfall-spectator-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ashenfall-spectator-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ashenfall-spectator-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 600;
}

.ashenfall-spectator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.ashenfall-spectator-card {
  padding: 1rem;
  border-radius: 0.85rem;
  background: var(--glass-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--text-secondary);
  min-width: 0;
}

.ashenfall-spectator-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.ashenfall-spectator-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.ashenfall-survivor {
  display: grid;
  gap: 0.35rem;
}

.ashenfall-survivor-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
}

.ashenfall-survivor-name {
  font-weight: 600;
  color: var(--text-primary);
}

.ashenfall-survivor-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ashenfall-survivor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.rarity-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.7);
}

.rarity-name {
  font-weight: 600;
}

.rarity-common {
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.rarity-rare {
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.rarity-epic {
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.5);
}

.rarity-legendary {
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.ashenfall-enemy {
  display: grid;
  gap: 0.35rem;
}

.ashenfall-enemy-main {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ashenfall-enemy-name {
  font-weight: 600;
  color: var(--text-primary);
}

.ashenfall-enemy-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ashenfall-enemy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ashenfall-map-wrapper {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.75rem;
  width: 100%;
  overflow-x: auto;
}

.ashenfall-map-layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.ashenfall-map-layout .ashenfall-map-wrapper {
  flex: 1 1 420px;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.ashenfall-map-inspector {
  flex: 0 1 280px;
  min-width: 240px;
  background: rgba(15, 23, 42, 0.2);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.85rem;
}

.ashenfall-map-focus {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.map-focus-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.map-focus-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-primary);
}

.map-focus-label {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.map-focus-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.map-focus-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.map-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  color: var(--text-primary);
}

.map-focus-empty {
  color: var(--text-secondary);
  font-style: italic;
}

.map-focus-meta {
  color: var(--text-secondary);
  font-style: italic;
}

.ashenfall-map {
  display: grid;
  gap: 0.25rem;
  background: rgba(139, 115, 85, 0.08);
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
}

.ashenfall-map-row {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.ashenfall-map-cell {
  width: var(--map-cell-size);
  height: var(--map-cell-size);
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: rgba(139, 115, 85, 0.15);
  position: relative;
  font-size: var(--map-font-size);
  border: 1px solid rgba(139, 115, 85, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ashenfall-map-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.ashenfall-map-base {
  font-size: var(--map-font-size);
  opacity: 0.75;
}

.ashenfall-map-markers {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--map-marker-size);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.ashenfall-map-indicators {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: flex;
  gap: 0.2rem;
}

.map-indicator {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.indicator-agents {
  background: #38bdf8;
}

.indicator-enemies {
  background: #f87171;
}

.indicator-settlements {
  background: #fbbf24;
}

.ashenfall-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.ashenfall-spectator-wide {
  grid-column: 1 / -1;
}

/* Vertical layout for spectator panels */
.ashenfall-spectator-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ashenfall-spectator-vertical .ashenfall-spectator-card {
  width: 100%;
}

/* Map coordinate labels container */
.ashenfall-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  --map-cell-size: 2.6rem;
  --map-font-size: 1.15rem;
  --map-marker-size: 1.2rem;
}

.ashenfall-map-container[data-map-zoom="small"] {
  --map-cell-size: 2.2rem;
  --map-font-size: 1rem;
  --map-marker-size: 1.05rem;
}

.ashenfall-map-container[data-map-zoom="medium"] {
  --map-cell-size: 2.6rem;
  --map-font-size: 1.15rem;
  --map-marker-size: 1.2rem;
}

.ashenfall-map-container[data-map-zoom="large"] {
  --map-cell-size: 3.1rem;
  --map-font-size: 1.35rem;
  --map-marker-size: 1.45rem;
}

.ashenfall-map-header-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
  margin-left: 0;
}

.ashenfall-map-corner {
  width: 1.5rem;
  height: 1.25rem;
}

.ashenfall-map-col-label {
  width: var(--map-cell-size);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.ashenfall-map-row-label {
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ashenfall-map-col-label.is-highlighted,
.ashenfall-map-row-label.is-highlighted {
  color: var(--text-primary);
  text-shadow: 0 0 6px rgba(248, 250, 252, 0.6);
}

.ashenfall-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.ashenfall-map-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.ashenfall-map-zoom {
  display: flex;
  gap: 0.35rem;
}

.map-zoom-btn {
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-zoom-btn.is-active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

.legend-filter {
  background: rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.legend-filter.is-active {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

.ashenfall-map-container[data-map-filter="agents"] .ashenfall-map-cell:not([data-has-agents="true"]),
.ashenfall-map-container[data-map-filter="enemies"] .ashenfall-map-cell:not([data-has-enemies="true"]),
.ashenfall-map-container[data-map-filter="settlements"] .ashenfall-map-cell:not([data-has-settlements="true"]) {
  opacity: 0.35;
  filter: grayscale(0.35);
}

.character-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.character-sheet span {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}

@media (min-width: 1025px) {

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

  .human-pane {
    border-right: 1px solid var(--glass-border);
    border-bottom: none;
  }

  .snapshot-section,
  .proof-pipeline,
  .world-spotlight {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .snapshot-layout,
  .pipeline-steps,
  .world-spotlight-grid {
    width: min(1100px, 90vw);
    margin: 0 auto;
  }

  .snapshot-section .section-header,
  .proof-pipeline .section-header,
  .world-spotlight .section-header {
    width: min(1100px, 90vw);
    margin-left: auto;
    margin-right: auto;
  }

  .snapshot-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    justify-content: center;
  }

  .snapshot-meta {
    text-align: center;
  }
}

.hero-intro {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  max-width: 720px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
  z-index: 2;
}

.hero-intro h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.hero-intro p {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(139, 115, 85, 0.12);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 0 1px rgba(196, 156, 92, 0.05);
}

.split-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  transition: flex-grow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle separators */
.human-pane {
  border-bottom: 1px solid var(--glass-border);
}

/* Hover Enlargement Effect */
.split-pane:hover {
  flex-grow: 1.5;
}

.split-pane:hover .pane-bg-glow {
  opacity: 0.2;
}

.pane-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.human-pane .pane-bg-glow {
  background: radial-gradient(circle at center, var(--human-glow), transparent 60%);
}

.agent-pane .pane-bg-glow {
  background: radial-gradient(circle at center, var(--agent-glow), transparent 60%);
}

.pane-content {
  text-align: center;
  max-width: 440px;
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 8px 10px -6px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px var(--glass-highlight);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pane-list {
  list-style: none;
  padding: 0;
  margin: -1.2rem 0 1.75rem;
  display: grid;
  gap: 0.65rem;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pane-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.pane-list li::before {
  content: '✦';
  color: var(--human-primary);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.agent-pane .pane-list li::before {
  color: var(--agent-primary);
}

.split-pane:hover .pane-content {
  transform: translateY(-5px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--glass-highlight);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.human-pane h2 {
  background-image: linear-gradient(135deg, #fff, var(--human-primary));
}

.agent-pane h2 {
  background-image: linear-gradient(135deg, #fff, var(--agent-primary));
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Button & Icon Styling */
.icon-wrapper {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  /* Pill shape */
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

/* Shine effect on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn-human {
  background: rgba(239, 68, 68, 0.1);
  color: var(--human-primary);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.08);
}

.btn-human:hover {
  background: var(--human-primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
}

.btn-agent {
  background: rgba(15, 23, 42, 0.06);
  color: var(--agent-primary);
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.06);
}

.btn-agent:hover {
  background: var(--agent-primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(15, 23, 42, 0.2);
}

/* Overlays */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 12, 8, 0.75);
  backdrop-filter: blur(15px);
  z-index: 50;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.overlay.active {
  display: flex;
  opacity: 1;
}

.overlay-content {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  background: #231c16;
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease-out;
  overflow-y: auto;
  overflow-x: hidden;
}

.overlay-content.dashboard-overlay {
  max-width: min(1400px, 94vw);
  width: min(1400px, 94vw);
}

.overlay-content::-webkit-scrollbar {
  width: 10px;
}

.overlay-content::-webkit-scrollbar-track {
  background: rgba(45, 35, 25, 0.5);
  border-radius: 5px;
}

.overlay-content::-webkit-scrollbar-thumb {
  background: rgba(196, 92, 38, 0.4);
  border-radius: 5px;
}

.overlay-content::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 92, 38, 0.6);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(139, 115, 85, 0.15);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(139, 115, 85, 0.25);
  transform: rotate(90deg);
}

.close-btn:active {
  transform: rotate(90deg) scale(0.9);
}

.close-btn:hover {
  background: rgba(139, 115, 85, 0.25);
  color: var(--text-primary);
}

/* Code Block */
.code-block {
  background: #0f172a;
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 0.75rem;
  font-family: 'Fira Code', monospace;
  color: #f8fafc;
  margin: 1.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-btn {
  background: var(--agent-primary);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.copy-btn:hover {
  opacity: 0.9;
}

.onboarding-steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.onboarding-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(139, 115, 85, 0.08);
  border: 1px solid var(--glass-border);
}

.onboarding-step h4 {
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.onboarding-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(45, 74, 62, 0.25);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.sample-response {
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(26, 22, 18, 0.95);
  border: 1px solid var(--glass-border);
}

.sample-response h4 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.code-sample {
  margin: 0;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(35, 28, 22, 0.9);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* List Styling */
.step-list li {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

/* Dashboard Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(140deg, #2a2218, #1e1914);
  border: 1px solid rgba(139, 115, 85, 0.2);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(196, 156, 92, 0.05);
}

#dashboard-overview {
  background: linear-gradient(140deg, rgba(42, 34, 24, 0.85), rgba(30, 25, 20, 0.9)), url('../images/PanelImage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dashboard-hero-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.dashboard-hero-copy p {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.mini-metric {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: rgba(35, 28, 22, 0.8);
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.mini-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-metric-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.training-loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.training-step {
  padding: 1.1rem;
  border-radius: 0.9rem;
  background: rgba(35, 28, 22, 0.6);
  border: 1px solid rgba(139, 115, 85, 0.15);
}

.training-step h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.training-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.proof-card {
  padding: 1.1rem 1.4rem;
  border-radius: 1rem;
  background: rgba(35, 28, 22, 0.6);
  border: 1px solid rgba(139, 115, 85, 0.15);
}

.proof-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.stat-card {
  background: rgba(35, 28, 22, 0.8);
  border: 1px solid rgba(139, 115, 85, 0.18);
  padding: 1.25rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  background: rgba(45, 36, 28, 0.9);
  box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.4);
}

.stat-value {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.dashboard-section {
  background: linear-gradient(180deg, #252019, #1e1914);
  border: 1px solid rgba(139, 115, 85, 0.18);
  border-radius: 1rem;
  padding: 1.25rem;
  padding-top: 0.9rem;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-section h3 {
  position: sticky;
  top: 0;
  background: rgba(37, 32, 25, 0.95);
  z-index: 1;
  padding-bottom: 1rem;
  margin: 0;
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  flex-shrink: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .dashboard-section h3 {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}

.dashboard-section::-webkit-scrollbar {
  width: 8px;
}

.dashboard-section::-webkit-scrollbar-track {
  background: rgba(45, 35, 25, 0.3);
  border-radius: 4px;
}

.dashboard-section::-webkit-scrollbar-thumb {
  background: rgba(196, 92, 38, 0.35);
  border-radius: 4px;
}

.dashboard-section::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 92, 38, 0.5);
}

.full-width {
  grid-column: span 3;
}

@media (min-width: 1200px) {
  .full-width {
    grid-column: span 3;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .full-width {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .full-width {
    grid-column: span 1;
  }
}

h3 {
  margin-top: 0;
  color: var(--human-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 0.65rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
}

td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}

.agent-name {
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.free_agent {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.under_contract {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.agent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.agent-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #f2e8d9;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.agent-badge-empty {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Event List */
.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  background: rgba(35, 28, 22, 0.7);
  border-radius: 0.65rem;
  border: 1px solid rgba(139, 115, 85, 0.15);
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.4);
}

.event-type {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
}

.event-domain {
  font-weight: 600;
  color: var(--text-primary);
}

.event-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.status-scheduled {
  color: var(--human-primary);
}

.status-in_progress {
  color: var(--agent-primary);
}

.status-completed {
  color: #10b981;
}

.loading {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
  animation: pulse 1.5s infinite;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.loading::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--human-primary);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px),
(max-height: 700px) {
  body {
    overflow-y: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 100vh;
    width: 100%;
    padding-top: 1.5rem;
  }

  .hero-intro {
    position: relative;
    top: 0;
    transform: none;
    width: min(92vw, 640px);
    max-width: 100%;
    margin: 0 auto 1rem;
    padding: 0 1rem;
    text-align: center;
    left: auto;
    right: auto;
  }

  .split-pane {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  .pane-content {
    width: min(92vw, 540px);
    max-width: 100%;
    margin: 1.5rem auto;
  }

  .site-footer {
    position: relative;
  }

  .snapshot-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .dashboard-section {
    max-height: none;
    padding: 1rem;
  }

  .overlay {
    padding: 0;
    align-items: stretch;
  }

  .overlay-content {
    padding: 1.5rem;
    max-width: 95vw;
  }

  .overlay-content.dashboard-overlay {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    align-self: stretch;
  }

  .spectator-overlay .overlay-content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    padding: 1.5rem;
    border-radius: 0;
  }

  .spectator-overlay .overlay-content {
    gap: 1rem;
  }

  .spectator-overlay .player-strip {
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
  }

  .spectator-overlay .game-stage {
    padding: 1.25rem;
    min-height: clamp(220px, 45vh, 520px);
  }

  .ashenfall-spectator-header {
    align-items: flex-start;
  }

  .ashenfall-spectator-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    grid-auto-flow: row;
  }

  .spectator-overlay .ashenfall-spectator-card {
    width: 100%;
  }

  .spectator-overlay .game-grid-container {
    gap: 1rem;
    margin-top: 1rem;
  }

  .spectator-overlay .ttt-board {
    max-width: min(72vw, 260px);
  }

  .spectator-overlay .ttt-cell {
    width: clamp(52px, 18vw, 72px);
    height: clamp(52px, 18vw, 72px);
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  .spectator-overlay .grid-cell {
    width: clamp(18px, 5vw, 24px);
    height: clamp(18px, 5vw, 24px);
  }

  .spectator-overlay .bs-cell {
    width: clamp(20px, 6vw, 28px);
    height: clamp(20px, 6vw, 28px);
  }

  .spectator-overlay .stone {
    width: clamp(14px, 4.5vw, 20px);
    height: clamp(14px, 4.5vw, 20px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 100vh;
  }

  .hero-intro {
    position: relative;
    top: 0;
    transform: none;
    width: min(88vw, 520px);
    margin: 1.25rem auto 0;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .site-footer {
    position: relative;
  }

  .human-pane {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .split-pane:hover {
    flex-grow: 1;
    /* Disable grow on mobile */
  }

  .pane-content {
    margin: 2rem 0;
    padding: 1.75rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .icon-wrapper {
    font-size: 3rem;
  }

  .trust-strip,
  .snapshot-section,
  .proof-pipeline,
  .world-spotlight {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-intro {
    margin-top: 1rem;
    width: min(90vw, 480px);
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .hero-intro h1 {
    font-size: 1.85rem;
  }
}

.step-list li {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.step-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--glass-border);
  /* Default bullet */
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

.human-pane .step-list li::before {
  color: var(--human-primary);
}

.agent-pane .step-list li::before {
  color: var(--agent-primary);
}

/* Spectator Grid Styles */
.game-grid-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.grid-board {
  display: inline-block;
  background: #deb887;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.battleship-board {
  background: #0f172a;
  border: 2px solid #1e293b;
}

.grid-row {
  display: flex;
}

.grid-cell {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Go Styles */
.grid-cell.go-cell::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #000;
  z-index: 0;
}

.grid-cell.go-cell::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: #000;
  z-index: 0;
}

.stone {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stone.black {
  background: #000;
  background: radial-gradient(circle at 30% 30%, #444, #000);
}

.stone.white {
  background: #fff;
  background: radial-gradient(circle at 30% 30%, #fff, #ddd);
}

/* Battleship Styles */
.bs-cell {
  width: 30px;
  height: 30px;
  border: 1px solid #334155;
  background: #1e293b;
}

.bs-cell.ship {
  background: #64748b;
  border-color: #94a3b8;
}

.bs-cell.hit {
  background: #ef4444;
  color: white;
  font-weight: bold;
}

.bs-cell.miss {
  background: #f8fafc;
  opacity: 0.5;
}

.bs-cell.hit::before {
  content: '✕';
  font-size: 1.2rem;
}

.bs-cell.miss::before {
  content: '○';
  color: #0f172a;
}

/* Game Feed / Dashboard Scrolling */
.game-feed {
  max-height: 60vh;
  min-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .game-feed {
    max-height: 45vh;
    min-height: 300px;
  }
}

/* Custom Scrollbar */
.game-feed::-webkit-scrollbar {
  width: 8px;
}

.game-feed::-webkit-scrollbar-track {
  background: rgba(45, 35, 25, 0.3);
  border-radius: 4px;
}

.game-feed::-webkit-scrollbar-thumb {
  background: rgba(196, 92, 38, 0.3);
  border-radius: 4px;
}

.game-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 92, 38, 0.45);
}

/* Game Cards */
.game-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(35, 28, 22, 0.7);
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .game-card {
    flex-wrap: wrap;
    padding: 0.5rem;
  }
}

.game-card:hover {
  background: rgba(45, 36, 28, 0.85);
  transform: translateX(4px);
}

.status-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
  white-space: nowrap;
}

/* Spectator Mode */
.spectator-overlay .overlay-content {
  max-width: min(1400px, 96vw);
  width: min(1400px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
}

.spectator-overlay .overlay-content::-webkit-scrollbar {
  width: 10px;
}

.spectator-overlay .overlay-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 5px;
}

.spectator-overlay .overlay-content::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.3);
  border-radius: 5px;
}

.spectator-overlay .overlay-content::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 68, 68, 0.4);
}

.player-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.player-info {
  text-align: center;
  padding: 1rem;
  background: rgba(35, 28, 22, 0.8);
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.player-info.current-turn {
  border-color: var(--human-primary);
  box-shadow: 0 0 20px rgba(196, 92, 38, 0.35);
  background: rgba(196, 92, 38, 0.15);
}

.player-avatar {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.game-stage {
  width: 100%;
  min-height: clamp(260px, 50vh, 640px);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.game-stage.ashenfall-stage {
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
}

.spectator-actions {
  margin-top: 0;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.spectator-actions .btn {
  padding: 0.75rem 1.5rem;
}

/* Spectator header */
.spectator-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spectator-header h2 {
  margin: 0;
  color: var(--text-primary);
}

.spectator-header #spec-game-id {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Tic Tac Toe */
.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 300px;
  margin: 0 auto;
}

.ttt-cell {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.ttt-cell.x {
  color: var(--text-primary);
}

.ttt-cell.o {
  color: var(--human-primary);
}

/* JSON Tree */
.json-tree {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 0.5rem;
}

.json-tree ul {
  margin: 0;
  padding-left: 1.5rem;
}

.json-tree li {
  margin: 0.25rem 0;
}

.error {
  color: #ef4444;
  text-align: center;
  padding: 2rem;
  font-family: 'Fira Code', monospace;
}

.dashboard-error {
  text-align: center;
  padding: 2.5rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.dashboard-error .error-title {
  color: #ef4444;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
}

/* Scroll to Top Button */
#scroll-to-top:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

#scroll-to-top:active {
  transform: scale(0.95);
}

/* Add game count badges */
.dashboard-section h3::after {
  content: attr(data-count);
  background: rgba(239, 68, 68, 0.2);
  color: var(--human-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* =============================================
   HOMEPAGE SNAPSHOT SECTION
   ============================================= */

.snapshot-section {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.9), rgba(26, 22, 18, 0.95));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.snapshot-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.snapshot-section .section-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--human-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.snapshot-section .section-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.snapshot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .snapshot-layout {
    grid-template-columns: 1fr;
  }
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.snapshot-card {
  background: rgba(35, 28, 22, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.snapshot-card .snapshot-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.snapshot-card strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.snapshot-meta {
  grid-column: span 2;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding-top: 0.5rem;
}

.snapshot-leaderboard,
.snapshot-recent {
  background: rgba(35, 28, 22, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.snapshot-leaderboard h4,
.snapshot-recent h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.leaderboard-list,
.recent-games-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.leaderboard-list li:last-child {
  border-bottom: none;
}

.leaderboard-list li strong {
  color: var(--human-primary);
  font-weight: 700;
}

/* Recent Encounters Panel */
.recent-games-list li.no-games {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.recent-game-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.recent-game-item:last-child {
  border-bottom: none;
}

.recent-game-type {
  font-size: 0.75rem;
  color: var(--human-primary);
  font-weight: 600;
}

.recent-game-result {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.recent-game-result strong {
  color: var(--text-primary);
}

.recent-game-score {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.recent-game-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: right;
}

.recent-game-players {
  grid-column: span 2;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* World Spotlight Section */
.world-spotlight {
  padding: 3rem 2rem;
}

.world-spotlight .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.world-spotlight .section-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--agent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.world-spotlight .section-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.world-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .world-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight-card {
  background: rgba(35, 28, 22, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.spotlight-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.spotlight-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Proof Pipeline Section */
.proof-pipeline {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.85), rgba(26, 22, 18, 0.9));
}

.proof-pipeline .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.proof-pipeline .section-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--human-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.proof-pipeline .section-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

/* Custom Dominant Realm Panel Style */
#dominant-realm-panel {
  position: relative;
  /* Use a dark overlay to fade the image */
  background: linear-gradient(rgba(26, 22, 18, 0.7), rgba(26, 22, 18, 0.9)), url('../images/PanelImage5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 156, 92, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#dominant-realm-panel .mini-metric-value,
#dominant-realm-panel .mini-metric-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom Top Reputation Panel Style */
#top-reputation-panel {
  position: relative;
  /* Use a dark overlay to fade the image */
  background: linear-gradient(rgba(26, 22, 18, 0.7), rgba(26, 22, 18, 0.9)), url('../images/PanelImage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 156, 92, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#top-reputation-panel .mini-metric-value,
#top-reputation-panel .mini-metric-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom Verified Encounters Panel Style */
#verified-encounters-panel {
  position: relative;
  /* Use a dark overlay to fade the image */
  background: linear-gradient(rgba(26, 22, 18, 0.7), rgba(26, 22, 18, 0.9)), url('../images/PanelImage3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 156, 92, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#verified-encounters-panel .mini-metric-value,
#verified-encounters-panel .mini-metric-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom Live Encounters Panel Style */
#live-encounters-panel {
  position: relative;
  /* Use a dark overlay to fade the image */
  background: linear-gradient(rgba(26, 22, 18, 0.7), rgba(26, 22, 18, 0.9)), url('../images/PanelImage4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 156, 92, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#live-encounters-panel .mini-metric-value,
#live-encounters-panel .mini-metric-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom Live Encounters Panel Style */
#dashboard-live-games {
  position: relative;
  /* Use a dark overlay to fade the image so content is readable */
  background: linear-gradient(rgba(26, 22, 18, 0.85), rgba(26, 22, 18, 0.95)), url('../images/PanelImageMap3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 156, 92, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Custom Open Encounters Panel Style */
#dashboard-open-games {
  position: relative;
  /* Use a dark overlay to fade the image so content is readable */
  background: linear-gradient(rgba(26, 22, 18, 0.85), rgba(26, 22, 18, 0.95)), url('../images/PanelImageMap2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196, 156, 92, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
