/* ClaudeWar DEX — dedicated page (claudewar.info/dex), Operative theme */

.dex-body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
  color: #d4d4d4;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.dex-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid #1d1d1d;
  backdrop-filter: blur(8px);
}

.dex-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dex-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ff6b00;
}

.dex-brand-logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.dex-brand-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.dex-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dex-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.dex-nav-btn:hover {
  border-color: #ff6b00;
  color: #ff6b00;
}

.dex-nav-btn-active {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.12);
  color: #ff6b00;
}

.dex-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.dex-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.dex-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  letter-spacing: 0.04em;
  color: #f5f5f5;
  line-height: 1;
}

.dex-subtitle {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 16px;
  max-width: 36rem;
}

.dex-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dex-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dex-pill-live {
  border-color: #ff6b00;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.1);
}

.dex-pill-muted {
  color: #888;
  font-family: "Share Tech Mono", monospace;
  text-transform: none;
}

.dex-teaser-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #111111;
}

.dex-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.dex-chip {
  appearance: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #111111;
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 600;
}

.dex-chip:hover {
  border-color: #ff6b00;
  color: #ff6b00;
}

.dex-chip-active {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.14);
  color: #ff6b00;
}

.dex-empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
  background: #111111;
}

.dex-empty-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: #f5f5f5;
  font-weight: 600;
}

.dex-empty-body {
  margin: 0 auto;
  max-width: 32rem;
  color: #9ca3af;
  font-size: 15px;
}

.dex-story-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dex-card {
  border: 1px solid #1d1d1d;
  border-radius: 12px;
  background: #111111;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dex-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.dex-card-score {
  font-family: "Share Tech Mono", monospace;
  font-size: 28px;
  font-weight: 700;
  color: #f5f5f5;
  min-width: 2.5rem;
  text-align: right;
}

.dex-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #f5f5f5;
}

.dex-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dex-badge-world {
  background: rgba(0, 255, 65, 0.12);
  color: #00ff41;
}

.dex-badge-chain {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.dex-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ff6b00;
  background: transparent;
  color: #ff6b00;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.dex-btn:hover {
  background: rgba(255, 107, 0, 0.12);
}

.dex-btn-primary {
  background: #ff6b00;
  color: #0a0a0a;
  border-color: #ff6b00;
}

.dex-btn-primary:hover {
  background: #ff8533;
  color: #0a0a0a;
}

.dex-btn-locked {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #2a2a2a;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .dex-title { font-size: 40px; }
  .dex-card-score { font-size: 24px; }
}
