:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #151c2c;
  --bg-card-hover: #1e2638;
  --border-color: #2b3648;
  --accent-gold: #e5b352;
  --accent-gold-glow: rgba(229, 179, 82, 0.35);
  --accent-cyan: #4fc3f7;
  --accent-green: #66bb6a;
  --accent-red: #ef5350;
  --text-main: #f0f3f8;
  --text-muted: #9aa5b8;
  --font-serif: 'Cinzel', 'Trajan Pro', 'Georgia', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
header {
  background: linear-gradient(180deg, #1f2532 0%, #171b24 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-subtitle-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
  display: inline-block;
}

.logo-area h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-gold-glow);
  margin: 0;
}

.logo-area .epoch-tag {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.global-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
}

.header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 8px;
}

.buy-multipliers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.buy-multipliers span {
  font-size: 12px;
  font-weight: 800;
  color: #ffd700;
  margin-right: 4px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CHRONOS PLAQUE AESTHETIC (ENGRAVED OBSIDIAN & BURNISHED BRASS)
   ========================================================================== */
.btn-toggle,
.buy-qty-btn {
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  background-color: #1a1a2e;
  background: linear-gradient(180deg, #1e2638 0%, #111723 100%);
  border: 1px solid #3d3d5c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 0 #090d16;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.btn-toggle:hover:not(.active),
.buy-qty-btn:hover:not(.active) {
  background-color: #2a2a3e;
  background: linear-gradient(180deg, #28334b 0%, #161f30 100%);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 0 #090d16, 0 0 12px rgba(234, 179, 8, 0.25);
  transform: translateY(-1px);
}

.btn-toggle:active,
.buy-qty-btn:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 #090d16 !important;
}

.btn-toggle.active,
.buy-qty-btn.active {
  background-color: #2a2a3e !important;
  background: linear-gradient(180deg, #32324a 0%, #1e1e2f 100%) !important;
  color: #ffd700 !important;
  font-weight: 800 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 #181824, 0 0 12px rgba(255, 215, 0, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible;
}

.autosave-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(102, 187, 106, 0.1);
  border: 1px solid rgba(102, 187, 106, 0.3);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 8px;
  user-select: none;
}

.autosave-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 6px rgba(102, 187, 106, 0.8);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.btn-action {
  position: relative;
  background: linear-gradient(180deg, #1e2638 0%, #111723 100%);
  border: 1px solid rgba(234, 179, 8, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 0 #090d16;
  color: #f1f5f9;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 38px;
}

.btn-action:hover {
  background: linear-gradient(180deg, #28334b 0%, #161f30 100%);
  border-color: rgba(234, 179, 8, 0.7);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 0 #090d16, 0 0 12px rgba(234, 179, 8, 0.25);
  transform: translateY(-1px);
}

.btn-action:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 #090d16 !important;
}

.btn-action.prestige {
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  border: 1px solid #f59e0b;
  color: #fef08a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 #2c0f01, 0 0 14px rgba(245, 158, 11, 0.35);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}

.btn-action.prestige:hover {
  background: linear-gradient(180deg, #92400e 0%, #582104 100%);
  border-color: #fde047;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #2c0f01, 0 0 18px rgba(245, 158, 11, 0.5);
}

/* Main Container */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

.epoch-banner {
  background: linear-gradient(90deg, rgba(229, 179, 82, 0.12) 0%, rgba(26, 30, 39, 0) 100%);
  border-left: 4px solid var(--accent-gold);
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: 0 8px 8px 0;
}

.epoch-banner h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.epoch-banner p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   SLEEK EMPIRE STATUS BAR & COMPACT GLOWING PILLS
   ========================================================================== */
.empire-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.empire-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.2;
}

.empire-status-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

.empire-status-pill.pill-transmission {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

.empire-status-pill.pill-monolith,
.empire-status-bar .monolith-global-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(180, 83, 9, 0.28) 100%);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde047;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  margin: 0;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  animation: none;
}

.empire-status-pill.pill-mastery,
.empire-status-bar .epoch-mastery-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(126, 34, 206, 0.28) 100%);
  border: 1px solid rgba(192, 132, 252, 0.6);
  color: #e9d5ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
  margin: 0;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

.empire-status-pill .pill-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  color: #fff;
}

/* ==========================================================================
   COLLAPSIBLE PROJECT CHRONOS & TEMPORAL ANCHORS DRAWER
   ========================================================================== */
.chronos-collapsible-drawer {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.chronos-drawer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25) 0%, rgba(76, 29, 149, 0.15) 100%);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.chronos-drawer-toggle:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.4) 0%, rgba(76, 29, 149, 0.25) 100%);
}

.drawer-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-icon {
  font-size: 16px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
}

.drawer-summary-pill {
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.4);
  padding: 2px 8px;
  border-radius: 9999px;
}

.drawer-toggle-right .drawer-toggle-btn {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  padding: 3px 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chronos-drawer-toggle:hover .drawer-toggle-btn {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}

.chronos-drawer-body {
  padding: 12px;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
}

.chronos-drawer-body.collapsed {
  display: none !important;
}

/* Assets Grid */
.assets-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 80px 220px 1fr 200px;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.asset-card:hover {
  border-color: #4b556b;
  transform: translateY(-1px);
}

.asset-card.automated {
  border-left: 4px solid var(--accent-cyan);
}

.asset-card.golden-sigil {
  border-left: 4px solid var(--accent-gold);
}

.asset-icon-box {
  width: 72px;
  height: 72px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.asset-icon-box {
  position: relative;
  cursor: pointer;
}

.asset-icon-box:hover {
  border-color: var(--era-accent, var(--accent-gold));
  box-shadow: 0 0 12px var(--era-glow, rgba(234, 179, 8, 0.25));
}

.asset-icon-box:active {
  transform: scale(0.95);
}

.asset-icon-box .asset-emoji {
  display: none;
}

.asset-icon-svg {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-icon-svg svg {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.asset-icon-box .asset-index-badge {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.asset-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.asset-level-badge {
  background: #151820;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}

.asset-metrics {
  font-size: 12px;
  color: var(--text-muted);
}

.asset-metrics span {
  color: var(--accent-green);
  font-weight: 600;
}

.asset-progress-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-wrapper {
  background: #13161c;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  height: 22px;
  position: relative;
  overflow: hidden;
}

.progress-fill,
.asset-progress-fill {
  background: linear-gradient(90deg, #388e3c 0%, #66bb6a 100%);
  height: 100%;
  width: 0%;
  transition: none !important;
}

.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.milestone-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.milestone-meta .next-goal {
  color: var(--accent-cyan);
}

.asset-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-buy {
  position: relative;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  color: #ffffff;
  border: 1px solid #4ade80;
  border-bottom: 4px solid #14532d;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.1s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.btn-buy:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
  border-bottom-width: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 14px rgba(34, 197, 94, 0.4);
}

.btn-buy:active:not(:disabled) {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.btn-buy:disabled {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  border-bottom: 3px solid #0f172a;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.65;
}

.btn-buy .buy-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.btn-buy .buy-cost {
  font-size: 11px;
  opacity: 0.95;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.asset-sub-actions {
  display: flex;
  gap: 6px;
}

.btn-sub {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-sub:hover:not(:disabled) {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-sub.active {
  background: #1b3d54;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-sub:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modals */
.hidden {
  display: none !important;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 18px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hire-all {
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
  border: 1px solid #43a047;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-hire-all:hover:not(:disabled) {
  filter: brightness(1.2);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
  transform: translateY(-1px);
}

.btn-hire-all:disabled {
  background: #2a303c;
  border-color: #3b4353;
  color: #6c788d;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn-hire-all.prominent {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  background: linear-gradient(180deg, #388e3c 0%, #1b5e20 100%);
  border: 1px solid #4caf50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.managers-top-banner {
  background: linear-gradient(135deg, #1b2838 0%, #151d28 100%);
  border: 1px solid #2d3b4f;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.managers-banner-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
}

.manager-meta h4 {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.manager-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-hire {
  background: linear-gradient(180deg, #1976d2 0%, #0d47a1 100%);
  border: 1px solid #2196f3;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-hire:disabled {
  background: #2a303c;
  border-color: #3b4353;
  color: #6c788d;
  cursor: not-allowed;
}

.badge-hired {
  background: #1b3d54;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.prestige-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.prestige-box h4 {
  font-size: 15px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.prestige-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.formula-display {
  background: #12151b;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
  font-size: 13px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .asset-card {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "icon info"
      "progress progress"
      "actions actions";
    gap: 12px;
  }
  .asset-icon-box { grid-area: icon; }
  .asset-info { grid-area: info; }
  .asset-progress-area { grid-area: progress; }
  .asset-actions { grid-area: actions; }
}

/* --- Epoch Navigation Tabs --- */
.epoch-nav {
  background: #141820;
  border-bottom: 2px solid var(--border-color);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.epoch-tabs-wrapper {
  display: flex;
  gap: 10px;
  max-width: 1200px;
  width: 100%;
}

.epoch-tab {
  flex: 1;
  min-width: 155px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.epoch-tab:hover:not(.locked) {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: #5a667f;
}

.epoch-tab.active {
  background: linear-gradient(180deg, #2f2718 0%, #1c212c 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.epoch-tab.locked {
  opacity: 0.65;
  background: #161a22;
  border: 1px dashed #3a4253;
  cursor: pointer;
}

.epoch-tab.locked:hover {
  opacity: 0.95;
  border-color: #ef5350;
  background: #201a1a;
}

.epoch-tab .tab-roman {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-gold);
}

.epoch-tab.locked .tab-roman {
  color: #718096;
}

.epoch-tab .tab-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epoch-tab .tab-lock-icon {
  font-size: 13px;
}

/* --- Inter-Era Trade Caravans --- */
.caravans-section {
  background: linear-gradient(135deg, #1b2432 0%, #161c27 100%);
  border: 1px solid #37475f;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caravans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.caravans-header h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.caravans-rate-badge {
  background: rgba(79, 195, 247, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Caravans Modal & Tier Rows */
.caravans-top-banner {
  background: linear-gradient(135deg, #1b2838 0%, #151d28 100%);
  border: 1px solid #2d3b4f;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.caravans-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.caravans-banner-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
}

.caravans-drip-badge {
  background: rgba(79, 195, 247, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.caravans-banner-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.caravans-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.caravan-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s;
  gap: 12px;
}

.caravan-tier-row.active {
  border-color: #1e88e5;
  background: linear-gradient(180deg, #172430 0%, #181d27 100%);
}

.caravan-tier-row.next-target {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #242018 0%, #1b1916 100%);
}

.caravan-tier-meta h4 {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.caravan-tier-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.caravan-tier-meta .drip-rate {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  margin-top: 3px;
}

.caravan-tier-badge-active {
  background: #113427;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-deploy-tier {
  background: linear-gradient(180deg, #1565c0 0%, #0d47a1 100%);
  border: 1px solid #1e88e5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-deploy-tier:hover:not(:disabled) {
  filter: brightness(1.2);
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.btn-deploy-tier:disabled {
  background: #2a303c;
  border-color: #3b4353;
  color: #6c788d;
  cursor: not-allowed;
}

/* Expedition Banner (Pre-unlock Epoch 2) */
.expedition-card {
  background: linear-gradient(135deg, #2b1f11 0%, #1a1e27 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(229, 179, 82, 0.15);
}

.expedition-info h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--accent-gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expedition-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-expedition {
  background: linear-gradient(180deg, #d4a359 0%, #b88628 100%);
  border: 1px solid #ffd54f;
  color: #12151b;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-expedition:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.btn-expedition:disabled {
  background: #2a303c;
  border-color: #3b4353;
  color: #6c788d;
  cursor: not-allowed;
}

/* --- Collapsible Developer Debug Tools --- */
.dev-tools-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.dev-tools-toggle {
  background: #1a1e28;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.2s;
}

.dev-tools-toggle:hover {
  background: #252b3a;
  box-shadow: 0 0 12px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.dev-drawer {
  position: absolute;
  bottom: 46px;
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #171c26;
  border: 2px solid #374151;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.dev-drawer.hidden {
  display: none;
}

.dev-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2d3748;
  padding-bottom: 8px;
}

.dev-drawer-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-close-dev {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.btn-close-dev:hover {
  color: #fff;
}

.dev-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.dev-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-dev {
  background: #222938;
  border: 1px solid #374151;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-dev:hover {
  background: #2d3748;
  border-color: var(--accent-gold);
  color: #fff;
}

.btn-dev:active {
  transform: scale(0.97);
}

.btn-dev-danger {
  background: #3b1818;
  border-color: #742a2a;
  color: #feb2b2;
}

.btn-dev-danger:hover {
  background: #521c1c;
  border-color: #e53e3e;
  color: #fff;
}

.dev-toggle-row {
  display: flex;
  align-items: center;
  background: #1e2432;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #2d3748;
}

.dev-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  cursor: pointer;
}

.dev-toggle-label input {
  cursor: pointer;
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   OVERDRIVE SOLID BAR & SHIMMER
   ========================================================================== */
.progress-fill.overdrive {
  width: 100% !important;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 50%, #d97706 100%) !important;
  background-size: 200% 100% !important;
  animation: overdrive-shimmer 1.8s infinite linear !important;
  box-shadow: inset 0 0 8px rgba(254, 240, 138, 0.8), 0 0 12px rgba(245, 158, 11, 0.6) !important;
  transition: none !important;
}

@keyframes overdrive-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.overdrive-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fef08a;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MILESTONE PREVIEW BADGE
   ========================================================================== */
.milestone-badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.milestone-badge-preview .highlight {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   EUREKA PRODUCTION FRENZY BANNER
   ========================================================================== */
.frenzy-banner {
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.25) 0%, rgba(245, 158, 11, 0.35) 50%, rgba(234, 88, 12, 0.25) 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(234, 88, 12, 0.2);
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: frenzy-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes frenzy-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.008); filter: brightness(1.25); }
}

.frenzy-icon {
  font-size: 24px;
  animation: frenzy-icon-spin 2s infinite linear;
}

@keyframes frenzy-icon-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.2); }
}

.frenzy-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.frenzy-text b {
  color: #fef08a;
  font-size: 16px;
  margin-left: 4px;
}

/* ==========================================================================
   FLOATING GOLDEN EUREKA SPARK
   ========================================================================== */
.eureka-spark {
  position: fixed;
  bottom: 80px;
  right: 28px;
  z-index: 999;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fef08a;
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6);
  animation: eureka-float 3s infinite ease-in-out;
  transition: transform 0.2s, filter 0.2s;
}

.eureka-spark:hover {
  transform: scale(1.1) translateY(-3px);
  filter: brightness(1.2);
  box-shadow: 0 0 35px rgba(254, 240, 138, 1), 0 6px 20px rgba(0, 0, 0, 0.7);
}

.eureka-spark:active {
  transform: scale(0.95);
}

.eureka-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 6px #fff);
  animation: eureka-wiggle 1.5s infinite ease-in-out;
}

@keyframes eureka-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.eureka-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

@keyframes eureka-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   CHRONOS GATEWAY & MONOLITH STYLES
   ========================================================================== */
.feature-card.chronos {
  background: linear-gradient(135deg, #1e112a 0%, #0d0814 100%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.feature-card.chronos .feature-title {
  color: #c084fc;
}

.feature-card.monolith {
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 2px solid #eab308;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.45);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.feature-card.monolith .feature-title {
  color: #fde047;
}

/* ==========================================================================
   GLOBAL MONOLITH STATUS BANNER & NARRATIVE TRANSMISSION BLURBS
   ========================================================================== */
.monolith-global-banner {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(46, 16, 101, 0.9) 100%);
  border: 2px solid #f59e0b;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.1);
  padding: 12px 18px;
  margin: 10px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: monolith-banner-glow 3s ease-in-out infinite alternate;
}

@keyframes monolith-banner-glow {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.25); border-color: #d97706; }
  100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.5); border-color: #facc15; }
}

.monolith-global-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.monolith-banner-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

.monolith-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
}

.monolith-banner-subtitle {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.4;
}

.monolith-banner-status-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  white-space: nowrap;
}

/* Narrative Story Transmission Blurb inside Epoch Banner */
.epoch-transmission-container {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.65);
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
}

.epoch-transmission-container .transmission-tag {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 3px;
}

.epoch-transmission-container .transmission-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  font-style: italic;
}

/* Transmission Box inside Chronicles Modal */
.chronicles-transmission-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 27, 75, 0.6) 100%);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0 16px 0;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.chronicles-transmission-box .chronicles-transmission-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chronicles-transmission-box .transmission-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.chronicles-transmission-box .transmission-title {
  font-size: 13px;
  font-weight: 700;
  color: #fef08a;
}

.chronicles-transmission-box .transmission-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   CHRONICLES MODAL TABS NAVIGATION
   ========================================================================== */
.chronicles-tabs-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 14px;
}

.chronicles-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chronicles-tab-btn:hover {
  color: #f8fafc;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.chronicles-tab-btn.active {
  color: #fef08a;
  border-color: #eab308;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.28) 100%);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

.chronicles-tab-pane {
  display: flex;
  flex-direction: column;
}

.chronicles-anchors-header-box {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.anchors-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.anchors-header-badge {
  font-size: 10px;
  font-weight: 800;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(192, 132, 252, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.anchors-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #fde047;
  margin: 0;
}

.anchors-header-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   EPOCH 6 PROJECT CHRONOS COMPACT COMMAND STRIP
   ========================================================================== */
.chronos-command-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(30, 17, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid #a855f7;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  max-height: 56px;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 8px;
}

.command-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.command-strip-pill {
  font-size: 12px;
  font-weight: 700;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.4);
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.command-strip-btn {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  border: 1px solid #c084fc;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  white-space: nowrap;
}

.command-strip-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
}

.command-strip-btn.ready-pulse {
  animation: ready-pulse-glow 1.5s infinite alternate;
  border-color: #fde047;
  color: #fef08a;
}

@keyframes ready-pulse-glow {
  0% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
  100% { box-shadow: 0 0 22px rgba(251, 191, 36, 0.95); transform: scale(1.02); }
}

/* ==========================================================================
   PROJECT CHRONOS: THE GATEWAY TRACKER PANEL (EPOCH 6)
   ========================================================================== */
.chronos-gateway-tracker-panel {
  background: linear-gradient(135deg, rgba(30, 17, 42, 0.95) 0%, rgba(13, 8, 20, 0.95) 100%);
  border: 2px solid #a855f7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
  position: relative;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#modal-chronos-gateway .chronos-gateway-tracker-panel,
#pane-chronicles-anchors .chronos-gateway-tracker-panel {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.gateway-rewards-box {
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #e9d5ff;
  line-height: 1.5;
}

.chronos-gateway-tracker-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #38bdf8, #7c3aed);
  background-size: 200% 100%;
  animation: gateway-shimmer 3s linear infinite;
}

@keyframes gateway-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.gateway-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gateway-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.8px;
}

.gateway-panel-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  border: 1px solid #a855f7;
}

.gateway-requirement-status {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.45;
}

.gateway-progress-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.gateway-progress-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
}

.gateway-progress-item-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gateway-progress-item-top .item-label {
  color: #e2e8f0;
}

.gateway-progress-item-top .item-val {
  color: #38bdf8;
}

.gateway-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(2, 6, 23, 0.7);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gateway-progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
}

.gateway-progress-fill.fill-dyson {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.gateway-progress-fill.fill-wealth {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #facc15 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* ==========================================================================
   UNLOCKS OVERVIEW MODAL (ADCAP STYLE)
   ========================================================================== */
.modal-content.modal-content-large {
  max-width: 880px;
  width: 95%;
  max-height: 88vh;
}

.unlocks-top-banner {
  background: linear-gradient(135deg, #182230 0%, #111823 100%);
  border: 1px solid #29384d;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.unlocks-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unlocks-banner-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
}

.unlocks-progress-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.unlocks-banner-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.unlocks-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-filter-unlocks {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-unlocks:hover {
  background: #334155;
  color: #fff;
}

.btn-filter-unlocks.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #000;
  font-weight: 700;
}

.unlocks-scroll-area {
  overflow-y: auto;
  max-height: 56vh;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.unlocks-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unlocks-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-gold);
  padding: 6px 12px;
  border-radius: 0 6px 6px 0;
}

.unlocks-group-header.shared {
  border-left-color: #38bdf8;
}

.unlocks-group-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.unlocks-group-stat {
  font-size: 11px;
  color: var(--text-muted);
}

.unlocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.unlock-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
  position: relative;
}

.unlock-card.unlocked {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.25) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

.unlock-card.unlocked.masterwork {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.unlock-card.locked {
  opacity: 0.65;
  background: rgba(10, 15, 25, 0.5);
}

.unlock-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.unlock-level-tag {
  font-weight: 800;
  color: var(--accent-gold);
}

.unlock-card.unlocked .unlock-level-tag {
  color: #4ade80;
}

.unlock-card.unlocked.masterwork .unlock-level-tag {
  color: #fbbf24;
}

.unlock-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.unlock-card.unlocked .unlock-status-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.unlock-card.unlocked.masterwork .unlock-status-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.unlock-card.locked .unlock-status-badge {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.unlock-card-effect {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.unlock-card.unlocked .unlock-card-effect {
  color: #ffffff;
}

.unlock-card-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.unlock-card-progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.unlock-card.unlocked .unlock-card-progress-fill {
  background: #22c55e;
}

.sigil-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.sigil-status-badge.claimed {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.sigil-status-badge.unclaimed {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.3);
}

/* ==========================================================================
   GOLDEN AGE STATUS BANNER (TIERS I - V)
   ========================================================================== */
.golden-age-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(30, 27, 75, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 8px 16px;
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 0 auto 16px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.golden-age-banner.tier-active {
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.golden-age-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.golden-age-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 6px #f59e0b);
}

.golden-age-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.golden-age-progress-text {
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 2px;
}

.golden-age-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.golden-age-active-perks {
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
}

.golden-age-next-perks {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   SIGIL RANK CONTROL & PERKS (RANKS I - V)
   ========================================================================== */
.sigil-rank-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.sigil-rank-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sigil-step {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.8);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sigil-step:hover:not(:disabled) {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.btn-sigil-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #475569;
  color: #64748b;
}

.btn-sigil-step.plus-only {
  width: auto;
  padding: 3px 8px;
  font-size: 11px;
  gap: 3px;
}

.btn-respec-sigils {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-respec-sigils:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
}

.sigil-rank-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.sigil-rank-badge.rank-0 {
  background: rgba(71, 85, 105, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(71, 85, 105, 0.4);
}

.sigil-rank-badge.rank-1 {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.sigil-rank-badge.rank-2 {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.sigil-rank-badge.rank-3 {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.sigil-rank-badge.rank-4 {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.6);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.sigil-rank-badge.rank-5 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fef08a;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  animation: warp-pulse 1.8s ease-in-out infinite alternate;
}

.sigil-perks-text {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.sigil-perks-text .highlight {
  color: #fbbf24;
  font-weight: 600;
}

.sigil-claimed-progress {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 600;
}

/* ==========================================================================
   CHRONOS 3D STARFIELD WORMHOLE TUNNEL OVERLAY ANIMATION
   ========================================================================== */
.chronos-warp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #090317 0%, #010005 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 700px;
}

.chronos-warp-overlay.hidden {
  display: none !important;
}

.wormhole-tunnel-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 700px;
  perspective-origin: center center;
  transform-style: preserve-3d;
  overflow: hidden;
}

.wormhole-starfield {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.star-streak {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 140px;
  background: linear-gradient(to bottom, #ffffff, rgba(168, 85, 247, 0.8), transparent);
  border-radius: 2px;
  transform-origin: center top;
  animation: star-fly 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.star-streak.streak-1  { transform: rotate(0deg); animation-delay: 0.0s; }
.star-streak.streak-2  { transform: rotate(30deg); animation-delay: 0.1s; }
.star-streak.streak-3  { transform: rotate(60deg); animation-delay: 0.2s; }
.star-streak.streak-4  { transform: rotate(90deg); animation-delay: 0.3s; }
.star-streak.streak-5  { transform: rotate(120deg); animation-delay: 0.15s; }
.star-streak.streak-6  { transform: rotate(150deg); animation-delay: 0.25s; }
.star-streak.streak-7  { transform: rotate(180deg); animation-delay: 0.05s; }
.star-streak.streak-8  { transform: rotate(210deg); animation-delay: 0.35s; }
.star-streak.streak-9  { transform: rotate(240deg); animation-delay: 0.18s; }
.star-streak.streak-10 { transform: rotate(270deg); animation-delay: 0.28s; }
.star-streak.streak-11 { transform: rotate(300deg); animation-delay: 0.12s; }
.star-streak.streak-12 { transform: rotate(330deg); animation-delay: 0.22s; }

@keyframes star-fly {
  0% {
    transform: translateY(20px) translateZ(-800px) scale(0.2);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(350px) translateZ(400px) scale(2.5);
    opacity: 0;
  }
}

.wormhole-portal-rings {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  pointer-events: none;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(168, 85, 247, 0.85);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.7), inset 0 0 25px rgba(56, 189, 248, 0.5);
  animation: portal-ring-zoom 2.4s cubic-bezier(0.15, 0.8, 0.25, 1) infinite;
}

.portal-ring.ring-1 { width: 300px; height: 300px; border-color: rgba(168, 85, 247, 0.9); animation-delay: 0s; }
.portal-ring.ring-2 { width: 300px; height: 300px; border-color: rgba(236, 72, 153, 0.9); animation-delay: 0.4s; }
.portal-ring.ring-3 { width: 300px; height: 300px; border-color: rgba(56, 189, 248, 0.9); animation-delay: 0.8s; }
.portal-ring.ring-4 { width: 300px; height: 300px; border-color: rgba(245, 158, 11, 0.9); animation-delay: 1.2s; }
.portal-ring.ring-5 { width: 300px; height: 300px; border-color: rgba(168, 85, 247, 0.9); animation-delay: 1.6s; }
.portal-ring.ring-6 { width: 300px; height: 300px; border-color: rgba(254, 240, 138, 0.9); animation-delay: 2.0s; }

@keyframes portal-ring-zoom {
  0% {
    transform: translateZ(-900px) scale(0.1) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateZ(350px) scale(3.5) rotate(180deg);
    opacity: 0;
  }
}

.wormhole-singularity-core {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.singularity-golden-flash {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fef08a 30%, #f59e0b 60%, transparent 80%);
  box-shadow: 0 0 60px #f59e0b, 0 0 100px #fbbf24;
  animation: singularity-pulse 1.4s ease-in-out infinite alternate;
}

.singularity-event-horizon {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 0 15px #ffffff, inset 0 0 12px #a855f7;
}

@keyframes singularity-pulse {
  0% { transform: scale(0.85); filter: brightness(1); }
  100% { transform: scale(1.35); filter: brightness(1.6); }
}

.warp-label-container {
  position: absolute;
  bottom: 40px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.warp-headline {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #f3e8ff;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.9), 0 0 40px rgba(6, 182, 212, 0.8);
  margin-bottom: 8px;
  animation: warp-text-glow 1.5s ease-in-out infinite alternate;
}

.warp-subline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c084fc;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.warp-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.warp-flash.flash-active,
.warp-flash.flashing {
  opacity: 0.95;
}

.chronos-warp-overlay.shaking {
  animation: warp-shake 0.15s linear infinite;
}

@keyframes warp-text-glow {
  0% { opacity: 0.7; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-4px); }
}

@keyframes warp-shake {
  0% { transform: translate(2px, 1px) rotate(0deg); }
  25% { transform: translate(-2px, -2px) rotate(-0.5deg); }
  50% { transform: translate(-1px, 2px) rotate(0.5deg); }
  75% { transform: translate(2px, -1px) rotate(0deg); }
  100% { transform: translate(1px, 2px) rotate(0.5deg); }
}

.btn-warp-replay {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  border: 1px solid #a855f7;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  margin-top: 10px;
}

.btn-warp-replay:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
}

/* ==========================================================================
   METALLIC SHINES FOR GILDED ASSETS & SOLID GOLD OVERDRIVE
   ========================================================================== */
.progress-fill.overdrive-bar {
  width: 100% !important;
  background: linear-gradient(90deg, #d97706, #fbbf24, #fef08a, #d97706) !important;
  background-size: 200% 100% !important;
  animation: overdrive-shimmer 1.5s linear infinite !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
}

@keyframes overdrive-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ==========================================================================
   METALLIC SHINES STRICTLY ON SIGIL RANK BADGES (NOT ENTIRE ASSET CARD)
   ========================================================================== */
.sigil-rank-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Rank I - Gilded Gold Badge */
.sigil-rank-badge.rank-1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(180, 83, 9, 0.5) 100%) !important;
  color: #fef08a !important;
  border: 1px solid #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important;
}

.sigil-rank-badge.rank-1::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(254, 240, 138, 0.6) 50%, transparent 65%);
  animation: badge-shimmer-sweep 2.8s linear infinite;
  pointer-events: none;
}

/* Rank II - Platinum Cyan Chrome Badge */
.sigil-rank-badge.rank-2 {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(2, 132, 199, 0.5) 100%) !important;
  color: #e0f2fe !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7) !important;
}

.sigil-rank-badge.rank-2::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(186, 230, 253, 0.7) 50%, transparent 65%);
  animation: badge-shimmer-sweep 2.2s linear infinite;
  pointer-events: none;
}

/* Rank III - Celestial Cosmic Purple Badge */
.sigil-rank-badge.rank-3 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(124, 58, 237, 0.55) 100%) !important;
  color: #fae8ff !important;
  border: 1px solid #c084fc !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.8) !important;
}

.sigil-rank-badge.rank-3::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(240, 171, 252, 0.8) 50%, transparent 70%);
  animation: badge-shimmer-sweep 1.8s linear infinite;
  pointer-events: none;
}

@keyframes badge-shimmer-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Golden Age Banner Active Shimmer */
.golden-age-banner.tier-active {
  position: relative;
  overflow: hidden;
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.golden-age-banner.tier-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(254, 240, 138, 0.2), transparent);
  animation: banner-sweep 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes banner-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================================================
   DISABLE GLOWS, NO-GLOW, & HIGH-ACCESSIBILITY PERFORMANCE STYLES
   ========================================================================== */
body.disable-glows *:not(.header-btn-icon):not(.hud-btn-icon):not(.icon-great-minds):not(.icon-overseers):not(.icon-shop):not(.icon-mint):not(.icon-caravans):not(.icon-chronicles):not(.icon-settings),
body.disable-glows *::before,
body.disable-glows *::after,
body.no-glow *:not(.header-btn-icon):not(.hud-btn-icon):not(.icon-great-minds):not(.icon-overseers):not(.icon-shop):not(.icon-mint):not(.icon-caravans):not(.icon-chronicles):not(.icon-settings),
body.no-glow *::before,
body.no-glow *::after,
body.low-graphics *:not(.header-btn-icon):not(.hud-btn-icon):not(.icon-great-minds):not(.icon-overseers):not(.icon-shop):not(.icon-mint):not(.icon-caravans):not(.icon-chronicles):not(.icon-settings),
body.low-graphics *::before,
body.low-graphics *::after,
.no-glow *:not(.header-btn-icon):not(.hud-btn-icon):not(.icon-great-minds):not(.icon-overseers):not(.icon-shop):not(.icon-mint):not(.icon-caravans):not(.icon-chronicles):not(.icon-settings),
.low-graphics *:not(.header-btn-icon):not(.hud-btn-icon):not(.icon-great-minds):not(.icon-overseers):not(.icon-shop):not(.icon-mint):not(.icon-caravans):not(.icon-chronicles):not(.icon-settings) {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
  background-image: none !important;
}

/* 1. Selected Buy Quantity High-Contrast Controls */
body.disable-glows .buy-multipliers span,
body.no-glow .buy-multipliers span,
body.low-graphics .buy-multipliers span,
.no-glow .buy-multipliers span,
.low-graphics .buy-multipliers span {
  color: #ffd700 !important;
  font-weight: 800 !important;
}

body.disable-glows .buy-qty-btn.active,
body.disable-glows .btn-toggle.active,
body.no-glow .buy-qty-btn.active,
body.no-glow .btn-toggle.active,
body.low-graphics .buy-qty-btn.active,
body.low-graphics .btn-toggle.active,
.no-glow .buy-qty-btn.active,
.no-glow .btn-toggle.active,
.low-graphics .buy-qty-btn.active,
.low-graphics .btn-toggle.active {
  background-color: #2a2a3e !important;
  background-image: none !important;
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.disable-glows .buy-qty-btn:not(.active),
body.disable-glows .btn-toggle:not(.active),
body.no-glow .buy-qty-btn:not(.active),
body.no-glow .btn-toggle:not(.active),
body.low-graphics .buy-qty-btn:not(.active),
body.low-graphics .btn-toggle:not(.active),
.no-glow .buy-qty-btn:not(.active),
.no-glow .btn-toggle:not(.active),
.low-graphics .buy-qty-btn:not(.active),
.low-graphics .btn-toggle:not(.active) {
  background-color: #1a1a2e !important;
  background-image: none !important;
  border: 1px solid #3d3d5c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.disable-glows .buy-qty-btn:hover:not(.active),
body.disable-glows .btn-toggle:hover:not(.active),
body.no-glow .buy-qty-btn:hover:not(.active),
body.no-glow .btn-toggle:hover:not(.active),
body.low-graphics .buy-qty-btn:hover:not(.active),
body.low-graphics .btn-toggle:hover:not(.active),
.no-glow .buy-qty-btn:hover:not(.active),
.no-glow .btn-toggle:hover:not(.active),
.low-graphics .buy-qty-btn:hover:not(.active),
.low-graphics .btn-toggle:hover:not(.active) {
  background-color: #2a2a3e !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
}

/* 2. Standard Metallic Solid Fallback for Buttons & Interactive Elements */
body.disable-glows .btn,
body.disable-glows .header-btn,
body.disable-glows .btn-action,
body.disable-glows .buy-btn,
body.disable-glows .interactive-el,
body.no-glow .btn,
body.no-glow .header-btn,
body.no-glow .btn-action,
body.no-glow .buy-btn,
body.no-glow .interactive-el,
body.low-graphics .btn,
body.low-graphics .header-btn,
body.low-graphics .btn-action,
body.low-graphics .buy-btn,
body.low-graphics .interactive-el,
.no-glow .btn,
.no-glow .header-btn,
.no-glow .btn-action,
.no-glow .buy-btn,
.no-glow .interactive-el,
.low-graphics .btn,
.low-graphics .header-btn,
.low-graphics .btn-action,
.low-graphics .buy-btn,
.low-graphics .interactive-el {
  background-color: #1a1a2e !important;
  background-image: none !important;
  border: 1px solid #3d3d5c !important;
  color: #e0e0e0 !important;
}

body.disable-glows .btn:hover:not(:disabled),
body.disable-glows .header-btn:hover:not(:disabled),
body.disable-glows .btn-action:hover:not(:disabled),
body.disable-glows .interactive-el:hover:not(:disabled),
body.no-glow .btn:hover:not(:disabled),
body.no-glow .header-btn:hover:not(:disabled),
body.no-glow .btn-action:hover:not(:disabled),
body.no-glow .interactive-el:hover:not(:disabled),
body.low-graphics .btn:hover:not(:disabled),
body.low-graphics .header-btn:hover:not(:disabled),
body.low-graphics .btn-action:hover:not(:disabled),
body.low-graphics .interactive-el:hover:not(:disabled),
.no-glow .btn:hover:not(:disabled),
.no-glow .header-btn:hover:not(:disabled),
.no-glow .btn-action:hover:not(:disabled),
.no-glow .interactive-el:hover:not(:disabled),
.low-graphics .btn:hover:not(:disabled),
.low-graphics .header-btn:hover:not(:disabled),
.low-graphics .btn-action:hover:not(:disabled),
.low-graphics .interactive-el:hover:not(:disabled) {
  background-color: #2a2a3e !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
}

/* Great Minds Prestige Header Button */
body.disable-glows .btn-action.prestige,
body.disable-glows .header-btn.prestige,
body.no-glow .btn-action.prestige,
body.no-glow .header-btn.prestige,
body.low-graphics .btn-action.prestige,
body.low-graphics .header-btn.prestige,
.no-glow .btn-action.prestige,
.no-glow .header-btn.prestige,
.low-graphics .btn-action.prestige,
.low-graphics .header-btn.prestige {
  background-color: #451a03 !important;
  background-image: none !important;
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  font-weight: 800 !important;
}

body.disable-glows .btn-action.prestige:hover,
body.disable-glows .header-btn.prestige:hover,
body.no-glow .btn-action.prestige:hover,
body.no-glow .header-btn.prestige:hover,
body.low-graphics .btn-action.prestige:hover,
body.low-graphics .header-btn.prestige:hover,
.no-glow .btn-action.prestige:hover,
.no-glow .header-btn.prestige:hover,
.low-graphics .btn-action.prestige:hover,
.low-graphics .header-btn.prestige:hover {
  background-color: #78350f !important;
  border-color: #ffe066 !important;
  color: #ffffff !important;
}

/* Primary CTA: Solid, Bright EUREKA! Button */
body.disable-glows .eureka-spark,
body.no-glow .eureka-spark,
body.low-graphics .eureka-spark,
.no-glow .eureka-spark,
.low-graphics .eureka-spark {
  background-color: #e5a93c !important;
  background-image: none !important;
  border: 2px solid #ffd700 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
  animation: none !important;
}

body.disable-glows .eureka-spark:hover,
body.no-glow .eureka-spark:hover,
body.low-graphics .eureka-spark:hover,
.no-glow .eureka-spark:hover,
.low-graphics .eureka-spark:hover {
  background-color: #ffd700 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
}

body.disable-glows .eureka-spark .eureka-label,
body.no-glow .eureka-spark .eureka-label,
body.low-graphics .eureka-spark .eureka-label,
.no-glow .eureka-spark .eureka-label,
.low-graphics .eureka-spark .eureka-label {
  color: #0f172a !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

body.disable-glows .eureka-spark .eureka-icon,
body.no-glow .eureka-spark .eureka-icon,
body.low-graphics .eureka-spark .eureka-icon,
.no-glow .eureka-spark .eureka-icon,
.low-graphics .eureka-spark .eureka-icon {
  filter: none !important;
  animation: none !important;
}

/* In-Game Upgrades & Action Buy Buttons */
body.disable-glows .btn-buy:not(:disabled),
body.disable-glows .buy-btn:not(:disabled),
body.no-glow .btn-buy:not(:disabled),
body.no-glow .buy-btn:not(:disabled),
body.low-graphics .btn-buy:not(:disabled),
body.low-graphics .buy-btn:not(:disabled),
.no-glow .btn-buy:not(:disabled),
.no-glow .buy-btn:not(:disabled),
.low-graphics .btn-buy:not(:disabled),
.low-graphics .buy-btn:not(:disabled) {
  background-color: #15803d !important;
  background-image: none !important;
  border: 1px solid #4ade80 !important;
  border-bottom: 3px solid #14532d !important;
  color: #ffffff !important;
}

body.disable-glows .btn-buy:hover:not(:disabled),
body.disable-glows .buy-btn:hover:not(:disabled),
body.no-glow .btn-buy:hover:not(:disabled),
body.no-glow .buy-btn:hover:not(:disabled),
body.low-graphics .btn-buy:hover:not(:disabled),
body.low-graphics .buy-btn:hover:not(:disabled),
.no-glow .btn-buy:hover:not(:disabled),
.no-glow .buy-btn:hover:not(:disabled),
.low-graphics .btn-buy:hover:not(:disabled),
.low-graphics .buy-btn:hover:not(:disabled) {
  background-color: #16a34a !important;
  border-color: #86efac !important;
  color: #ffffff !important;
}

body.disable-glows .btn-buy:disabled,
body.disable-glows .buy-btn:disabled,
body.no-glow .btn-buy:disabled,
body.no-glow .buy-btn:disabled,
body.low-graphics .btn-buy:disabled,
body.low-graphics .buy-btn:disabled,
.no-glow .btn-buy:disabled,
.no-glow .buy-btn:disabled,
.low-graphics .btn-buy:disabled,
.low-graphics .buy-btn:disabled {
  background-color: #1e293b !important;
  background-image: none !important;
  border: 1px solid #334155 !important;
  border-bottom: 2px solid #0f172a !important;
  color: #64748b !important;
  opacity: 0.7 !important;
}

/* Epoch Tabs */
body.disable-glows .epoch-tab,
body.no-glow .epoch-tab,
body.low-graphics .epoch-tab,
.no-glow .epoch-tab,
.low-graphics .epoch-tab {
  background-color: #141c26 !important;
  background-image: none !important;
  border: 1px solid #2d3748 !important;
  color: #cbd5e1 !important;
}

body.disable-glows .epoch-tab:hover:not(.locked),
body.no-glow .epoch-tab:hover:not(.locked),
body.low-graphics .epoch-tab:hover:not(.locked),
.no-glow .epoch-tab:hover:not(.locked),
.low-graphics .epoch-tab:hover:not(.locked) {
  background-color: #1e293b !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
}

body.disable-glows .epoch-tab.active,
body.no-glow .epoch-tab.active,
body.low-graphics .epoch-tab.active,
.no-glow .epoch-tab.active,
.low-graphics .epoch-tab.active {
  background-color: #2a2a3e !important;
  background-image: none !important;
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
}

body.disable-glows .epoch-tab.active .tab-roman,
body.no-glow .epoch-tab.active .tab-roman,
body.low-graphics .epoch-tab.active .tab-roman,
.no-glow .epoch-tab.active .tab-roman,
.low-graphics .epoch-tab.active .tab-roman {
  color: #ffd700 !important;
  font-weight: 800 !important;
}

body.disable-glows .epoch-tab.locked,
body.no-glow .epoch-tab.locked,
body.low-graphics .epoch-tab.locked,
.no-glow .epoch-tab.locked,
.low-graphics .epoch-tab.locked {
  background-color: #10141d !important;
  border: 1px dashed #3a4253 !important;
  color: #64748b !important;
}

/* Modal and Sub-Action Buttons */
body.disable-glows .btn-hire:not(:disabled),
body.disable-glows .btn-hire-all:not(:disabled),
body.no-glow .btn-hire:not(:disabled),
body.no-glow .btn-hire-all:not(:disabled),
body.low-graphics .btn-hire:not(:disabled),
body.low-graphics .btn-hire-all:not(:disabled),
.no-glow .btn-hire:not(:disabled),
.no-glow .btn-hire-all:not(:disabled),
.low-graphics .btn-hire:not(:disabled),
.low-graphics .btn-hire-all:not(:disabled) {
  background-color: #1e3a5f !important;
  background-image: none !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
}

body.disable-glows .btn-hire:disabled,
body.disable-glows .btn-hire-all:disabled,
body.no-glow .btn-hire:disabled,
body.no-glow .btn-hire-all:disabled,
body.low-graphics .btn-hire:disabled,
body.low-graphics .btn-hire-all:disabled,
.no-glow .btn-hire:disabled,
.no-glow .btn-hire-all:disabled,
.low-graphics .btn-hire:disabled,
.low-graphics .btn-hire-all:disabled {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #64748b !important;
}

body.disable-glows .btn-shop-buy:not(:disabled),
body.disable-glows .btn-pantheon-buy:not(:disabled),
body.no-glow .btn-shop-buy:not(:disabled),
body.no-glow .btn-pantheon-buy:not(:disabled),
body.low-graphics .btn-shop-buy:not(:disabled),
body.low-graphics .btn-pantheon-buy:not(:disabled),
.no-glow .btn-shop-buy:not(:disabled),
.no-glow .btn-pantheon-buy:not(:disabled),
.low-graphics .btn-shop-buy:not(:disabled),
.low-graphics .btn-pantheon-buy:not(:disabled) {
  background-color: #78350f !important;
  background-image: none !important;
  border: 1px solid #ffd700 !important;
  color: #ffd700 !important;
}

body.disable-glows .btn-shop-buy:disabled,
body.disable-glows .btn-pantheon-buy:disabled,
body.no-glow .btn-shop-buy:disabled,
body.no-glow .btn-pantheon-buy:disabled,
body.low-graphics .btn-shop-buy:disabled,
body.low-graphics .btn-pantheon-buy:disabled,
.no-glow .btn-shop-buy:disabled,
.no-glow .btn-pantheon-buy:disabled,
.low-graphics .btn-shop-buy:disabled,
.low-graphics .btn-pantheon-buy:disabled {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #64748b !important;
}

body.disable-glows .btn-deploy-tier:not(:disabled),
body.disable-glows .btn-expedition:not(:disabled),
body.disable-glows .btn-expedition-claim,
body.no-glow .btn-deploy-tier:not(:disabled),
body.no-glow .btn-expedition:not(:disabled),
body.no-glow .btn-expedition-claim,
body.low-graphics .btn-deploy-tier:not(:disabled),
body.low-graphics .btn-expedition:not(:disabled),
body.low-graphics .btn-expedition-claim,
.no-glow .btn-deploy-tier:not(:disabled),
.no-glow .btn-expedition:not(:disabled),
.no-glow .btn-expedition-claim,
.low-graphics .btn-deploy-tier:not(:disabled),
.low-graphics .btn-expedition:not(:disabled),
.low-graphics .btn-expedition-claim {
  background-color: #b45309 !important;
  background-image: none !important;
  border: 1px solid #ffd700 !important;
  color: #ffffff !important;
}

body.disable-glows .btn-deploy-tier:disabled,
body.disable-glows .btn-expedition:disabled,
body.no-glow .btn-deploy-tier:disabled,
body.no-glow .btn-expedition:disabled,
body.low-graphics .btn-deploy-tier:disabled,
body.low-graphics .btn-expedition:disabled,
.no-glow .btn-deploy-tier:disabled,
.no-glow .btn-expedition:disabled,
.low-graphics .btn-deploy-tier:disabled,
.low-graphics .btn-expedition:disabled {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #64748b !important;
}

body.disable-glows .btn-close,
body.no-glow .btn-close,
body.low-graphics .btn-close,
.no-glow .btn-close,
.low-graphics .btn-close {
  background-color: #1e293b !important;
  background-image: none !important;
  border: 1px solid #475569 !important;
  color: #e2e8f0 !important;
}

body.disable-glows .btn-close:hover,
body.no-glow .btn-close:hover,
body.low-graphics .btn-close:hover,
.no-glow .btn-close:hover,
.low-graphics .btn-close:hover {
  background-color: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

body.disable-glows .btn-sub,
body.no-glow .btn-sub,
body.low-graphics .btn-sub,
.no-glow .btn-sub,
.low-graphics .btn-sub {
  background-color: #1e293b !important;
  background-image: none !important;
  border: 1px solid #475569 !important;
  color: #94a3b8 !important;
}

body.disable-glows .btn-sub.active,
body.no-glow .btn-sub.active,
body.low-graphics .btn-sub.active,
.no-glow .btn-sub.active,
.low-graphics .btn-sub.active {
  background-color: #1e3a5f !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

/* 3. Gating State Icons & Fallback Visual Depth (Progress Bars, Badges, Cards) */
body.disable-glows .progress-bar-wrapper,
body.no-glow .progress-bar-wrapper,
body.low-graphics .progress-bar-wrapper,
.no-glow .progress-bar-wrapper,
.low-graphics .progress-bar-wrapper {
  background-color: #0b0f17 !important;
  background-image: none !important;
  border: 1px solid #2d3748 !important;
}

body.disable-glows .progress-fill,
body.disable-glows .asset-progress-fill,
body.no-glow .progress-fill,
body.no-glow .asset-progress-fill,
body.low-graphics .progress-fill,
body.low-graphics .asset-progress-fill,
.no-glow .progress-fill,
.no-glow .asset-progress-fill,
.low-graphics .progress-fill,
.low-graphics .asset-progress-fill {
  background: linear-gradient(90deg, #388e3c 0%, #66bb6a 100%) !important;
  border-right: 2px solid #86efac !important;
  transition: none !important;
}

body.disable-glows .progress-fill.overdrive-bar,
body.disable-glows .progress-fill.overdrive,
body.no-glow .progress-fill.overdrive-bar,
body.no-glow .progress-fill.overdrive,
body.low-graphics .progress-fill.overdrive-bar,
body.low-graphics .progress-fill.overdrive,
.no-glow .progress-fill.overdrive-bar,
.no-glow .progress-fill.overdrive,
.low-graphics .progress-fill.overdrive-bar,
.low-graphics .progress-fill.overdrive {
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 50%, #d97706 100%) !important;
  border-right: 2px solid #ffd700 !important;
  width: 100% !important;
  transition: none !important;
}

body.disable-glows .progress-text,
body.no-glow .progress-text,
body.low-graphics .progress-text,
.no-glow .progress-text,
.low-graphics .progress-text {
  color: #ffffff;
  font-weight: 700;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 10px !important;
}

body.disable-glows .asset-card,
body.no-glow .asset-card,
body.low-graphics .asset-card,
.no-glow .asset-card,
.low-graphics .asset-card {
  background-color: #141c26 !important;
  background-image: none !important;
  border: 1px solid #233549 !important;
}

body.disable-glows .feature-card,
body.no-glow .feature-card,
body.low-graphics .feature-card,
.no-glow .feature-card,
.low-graphics .feature-card {
  background-color: #141c26 !important;
  background-image: none !important;
  border: 1px solid #233549 !important;
}

body.disable-glows .golden-age-banner,
body.no-glow .golden-age-banner,
body.low-graphics .golden-age-banner,
.no-glow .golden-age-banner,
.low-graphics .golden-age-banner {
  background-color: #141c26 !important;
  background-image: none !important;
  border: 1px solid #d97706 !important;
}

body.disable-glows .stat-pill,
body.no-glow .stat-pill,
body.low-graphics .stat-pill,
.no-glow .stat-pill,
.low-graphics .stat-pill {
  background-color: #141c26 !important;
  background-image: none !important;
  border: 1px solid #2d3748 !important;
  color: #e2e8f0 !important;
}

body.disable-glows .asset-level-badge,
body.disable-glows .asset-index-badge,
body.no-glow .asset-level-badge,
body.no-glow .asset-index-badge,
body.low-graphics .asset-level-badge,
body.low-graphics .asset-index-badge,
.no-glow .asset-level-badge,
.no-glow .asset-index-badge,
.low-graphics .asset-level-badge,
.low-graphics .asset-index-badge {
  background-color: #1e293b !important;
  background-image: none !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important;
}

body.disable-glows .milestone-badge-preview,
body.no-glow .milestone-badge-preview,
body.low-graphics .milestone-badge-preview,
.no-glow .milestone-badge-preview,
.low-graphics .milestone-badge-preview {
  background-color: #182234 !important;
  background-image: none !important;
  border: 1px solid #3b82f6 !important;
  color: #93c5fd !important;
}

body.disable-glows .overdrive-badge,
body.no-glow .overdrive-badge,
body.low-graphics .overdrive-badge,
.no-glow .overdrive-badge,
.low-graphics .overdrive-badge {
  background-color: #451a03 !important;
  background-image: none !important;
  border: 1px solid #f59e0b !important;
  color: #fef08a !important;
}

body.disable-glows .sigil-rank-badge::after,
body.no-glow .sigil-rank-badge::after,
body.low-graphics .sigil-rank-badge::after {
  display: none !important;
}

body.disable-glows .sigil-rank-badge.rank-1,
body.no-glow .sigil-rank-badge.rank-1,
body.low-graphics .sigil-rank-badge.rank-1,
.no-glow .sigil-rank-badge.rank-1,
.low-graphics .sigil-rank-badge.rank-1 {
  background-color: #78350f !important;
  background-image: none !important;
  color: #fef08a !important;
  border: 1px solid #d97706 !important;
  box-shadow: none !important;
}

body.disable-glows .sigil-rank-badge.rank-2,
body.no-glow .sigil-rank-badge.rank-2,
body.low-graphics .sigil-rank-badge.rank-2,
.no-glow .sigil-rank-badge.rank-2,
.low-graphics .sigil-rank-badge.rank-2 {
  background-color: #0c4a6e !important;
  background-image: none !important;
  color: #e0f2fe !important;
  border: 1px solid #0284c7 !important;
  box-shadow: none !important;
}

body.disable-glows .sigil-rank-badge.rank-3,
body.no-glow .sigil-rank-badge.rank-3,
body.low-graphics .sigil-rank-badge.rank-3,
.no-glow .sigil-rank-badge.rank-3,
.low-graphics .sigil-rank-badge.rank-3 {
  background-color: #581c87 !important;
  background-image: none !important;
  color: #fae8ff !important;
  border: 1px solid #9333ea !important;
  box-shadow: none !important;
}

/* ==========================================================================
   PANTHEON UPGRADES (PRESTIGE MODAL)
   ========================================================================== */
.pantheon-container {
  margin-top: 18px;
  background: linear-gradient(135deg, #131c26 0%, #0d141c 100%);
  border: 1px solid #233549;
  border-radius: 8px;
  padding: 14px 16px;
}

.pantheon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pantheon-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pantheon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pantheon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #182330;
  border: 1px solid #283a50;
  border-radius: 6px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.pantheon-card.owned {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.08);
}

.pantheon-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pantheon-card-name {
  font-weight: 700;
  font-size: 14px;
  color: #f1f5f9;
}

.pantheon-card-desc {
  font-size: 12px;
  color: #94a3b8;
}

.pantheon-smart-warning {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-pantheon-buy {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid #38bdf8;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-pantheon-buy:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-pantheon-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.pantheon-owned-badge {
  color: #10b981;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #059669;
  border-radius: 4px;
}

/* ==========================================================================
   IMPERIAL TREASURY (SHOP MODAL)
   ========================================================================== */
.shop-top-banner {
  background: linear-gradient(135deg, #241438 0%, #150c22 100%);
  border: 1px solid #6b21a8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.shop-banner-desc {
  font-size: 13px;
  color: #d8b4fe;
  margin: 0;
}

.shop-multipliers-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #171438 100%);
  border: 1px solid #6366f1;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-multipliers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: #a5b4fc;
}

.shop-multipliers-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.multiplier-pill {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #e0e7ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.multiplier-pill strong {
  color: #38bdf8;
}

.shop-multipliers-note {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.shop-card {
  background: linear-gradient(135deg, #18202e 0%, #111722 100%);
  border: 1px solid #2a384e;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.shop-card.featured {
  border-color: #eab308;
  background: linear-gradient(135deg, #261f12 0%, #151109 100%);
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.2);
}

.shop-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.shop-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.shop-card-icon {
  font-size: 26px;
  line-height: 1;
}

.shop-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  padding-right: 90px;
}

.shop-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.shop-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-card-price {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
}

.btn-shop-buy {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid #60a5fa;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-shop-buy:hover:not(:disabled) {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.shop-owned-tag {
  color: #10b981;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #059669;
  border-radius: 4px;
}

/* ==========================================================================
   SETTINGS MODAL & CONTROLS
   ========================================================================== */
.settings-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #233549;
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-section h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--accent-gold);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
}

.setting-row.danger-zone {
  background: rgba(239, 68, 68, 0.06);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  padding: 12px;
  border-radius: 6px;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-title {
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
}

.setting-desc {
  font-size: 11px;
  color: #94a3b8;
}

.btn-danger {
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0ea5e9;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.volume-slider {
  width: 130px;
  cursor: pointer;
}

/* ==========================================================================
   GOLDEN AGE PROCLAMATION MODAL
   ========================================================================== */
.modal-content-proclamation {
  background: linear-gradient(135deg, #1f1807 0%, #0d0a03 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.45);
  max-width: 520px;
  width: 90%;
  text-align: center;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.proclamation-icon {
  font-size: 44px;
  margin-bottom: 6px;
  animation: float-spark 2.5s ease-in-out infinite alternate;
}

.proclamation-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.08em;
  margin: 0 0 6px 0;
  text-shadow: 0 0 16px rgba(253, 224, 71, 0.6);
}

.proclamation-sub {
  font-size: 14px;
  color: #fbd38d;
  font-weight: 600;
  margin-bottom: 16px;
}

.proclamation-quote {
  font-style: italic;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #f59e0b;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.proclamation-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.proclamation-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #fef08a;
  text-align: left;
}

.btn-proclamation {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fcd34d;
  color: #000;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.btn-proclamation:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.8);
}

/* ==========================================================================
   IMPERIAL MINT & GILDING BUTTON TACTILE FEEDBACK
   ========================================================================== */
#btn-mint-bullion,
#btn-smelt-1-sigil,
#btn-smelt-10-sigils {
  transition: transform 0.08s ease, filter 0.08s ease, box-shadow 0.08s ease;
  cursor: pointer;
  user-select: none;
}

#btn-mint-bullion:hover:not(:disabled),
#btn-smelt-1-sigil:hover:not(:disabled),
#btn-smelt-10-sigils:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

#btn-mint-bullion:active:not(:disabled),
#btn-smelt-1-sigil:active:not(:disabled),
#btn-smelt-10-sigils:active:not(:disabled) {
  transform: scale(0.96) !important;
  filter: brightness(1.25) !important;
}

#btn-mint-bullion:disabled,
#btn-smelt-1-sigil:disabled,
#btn-smelt-10-sigils:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: grayscale(0.5);
}


/* ==========================================================================
   MONOLITH OF CHRONOS AWAKENING CINEMATIC (#chronos-monolith-cinematic)
   ========================================================================== */
.monolith-cinematic-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #0b1120 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.monolith-cinematic-overlay.active {
  opacity: 1;
}

.monolith-cinematic-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.monolith-cosmic-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.18) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 85%);
  animation: cosmic-aura-pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.monolith-nebula-pulse {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 75%);
  animation: nebula-drift 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes nebula-drift {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.2) rotate(180deg); opacity: 0.9; }
}

@keyframes cosmic-aura-pulse {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

/* Flanking Shimmering Crystalline Energy Pylons */
.monolith-crystalline-pylon {
  position: absolute;
  bottom: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
  animation: pylon-emerge 1.4s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.monolith-crystalline-pylon.pylon-left {
  left: 26%;
}

.monolith-crystalline-pylon.pylon-right {
  right: 26%;
}

@keyframes pylon-emerge {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.crystal-spire {
  width: 22px;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.8) 40%, rgba(147, 51, 234, 0.6) 90%);
  clip-path: polygon(50% 0%, 100% 20%, 85% 100%, 15% 100%, 0% 20%);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), 0 0 50px rgba(168, 85, 247, 0.5);
  animation: crystal-resonance 2.5s ease-in-out infinite alternate;
}

@keyframes crystal-resonance {
  0% { filter: brightness(0.9) drop-shadow(0 0 15px rgba(56, 189, 248, 0.6)); }
  100% { filter: brightness(1.4) drop-shadow(0 0 35px rgba(217, 70, 239, 0.9)); }
}

.crystal-energy-core {
  position: absolute;
  top: 40px;
  width: 8px;
  height: 90px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 20px #38bdf8, 0 0 35px #a855f7;
  animation: crystal-core-glow 1.5s ease-in-out infinite alternate;
}

@keyframes crystal-core-glow {
  0% { opacity: 0.6; transform: scaleY(0.8); }
  100% { opacity: 1; transform: scaleY(1.1); }
}

.crystal-pedestal {
  width: 44px;
  height: 16px;
  background: linear-gradient(180deg, #3f3f46 0%, #18181b 100%);
  border: 1px solid #71717a;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* Central Foundation & Slender Obsidian Pillar */
.monolith-foundation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  animation: monolith-rise 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes monolith-rise {
  0% {
    transform: translateY(120px) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Floating, Rotating Quantum Energy Sphere Hovering Just Above Apex */
.monolith-floating-quantum-orb {
  position: absolute;
  top: -55px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: float-quantum-orb 3s ease-in-out infinite alternate;
}

@keyframes float-quantum-orb {
  0% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-12px) scale(1.08); }
}

.quantum-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.quantum-ring.quantum-ring-1 {
  width: 46px;
  height: 46px;
  border: 2px dashed #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
  animation: ring-spin-cw 4s linear infinite;
}

.quantum-ring.quantum-ring-2 {
  width: 38px;
  height: 38px;
  border: 2px solid #fbbf24;
  border-top-color: transparent;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
  transform: rotateX(65deg);
  animation: ring-spin-ccw 3s linear infinite reverse;
}

@keyframes ring-spin-cw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ring-spin-ccw {
  0% { transform: rotateX(65deg) rotate(0deg); }
  100% { transform: rotateX(65deg) rotate(360deg); }
}

.quantum-singularity-core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, #38bdf8 45%, #7c3aed 80%, #030712 100%);
  box-shadow: 0 0 25px #67e8f9, 0 0 45px #c084fc;
  animation: quantum-singularity-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes quantum-singularity-pulse {
  0% { transform: scale(0.85); box-shadow: 0 0 20px #38bdf8, 0 0 35px #a855f7; }
  100% { transform: scale(1.25); box-shadow: 0 0 35px #67e8f9, 0 0 60px #f43f5e; }
}

.quantum-spark-field {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
  animation: spark-field-pulse 2s infinite alternate ease-in-out;
}

@keyframes spark-field-pulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0.8; transform: scale(1.3); }
}

/* The Obsidian Obelisk Body */
.monolith-obelisk-body {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.7));
}

.monolith-pyramidion {
  width: 0;
  height: 0;
  border-left: 38px solid transparent;
  border-right: 38px solid transparent;
  border-bottom: 58px solid #09090b;
  position: relative;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.9));
}

.pyramidion-gold-cap {
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #fbbf24;
  filter: drop-shadow(0 0 10px #fef08a);
}

.pyramidion-glow-apex {
  position: absolute;
  top: -6px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 15px #38bdf8, 0 0 30px #fbbf24;
  animation: apex-flare 1.8s infinite alternate ease-in-out;
}

@keyframes apex-flare {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 1; }
}

.monolith-shaft {
  width: 72px;
  height: 290px;
  background: linear-gradient(135deg, #18181b 0%, #09090b 35%, #27272a 50%, #0c0a09 75%, #18181b 100%);
  border-left: 3px solid #f59e0b;
  border-right: 3px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.95), 0 0 30px rgba(217, 119, 6, 0.5);
  position: relative;
  overflow: hidden;
}

.obsidian-sheen-facet {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.08) 48%, transparent 55%);
  pointer-events: none;
  animation: obsidian-sheen-scan 4s linear infinite;
}

@keyframes obsidian-sheen-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Etched Runic Circuitry Lines */
.runic-circuit-trace {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.runic-circuit-trace.trace-left-cyan {
  left: 18px;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #38bdf8 25%, #0284c7 75%, transparent 100%);
  box-shadow: 0 0 8px #38bdf8;
  animation: circuit-pulse 2s ease-in-out infinite alternate;
}

.runic-circuit-trace.trace-center-gold {
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 0 10px #fbbf24;
  animation: circuit-pulse 2.4s 0.5s ease-in-out infinite alternate;
}

.runic-circuit-trace.trace-right-cyan {
  right: 18px;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #38bdf8 25%, #0284c7 75%, transparent 100%);
  box-shadow: 0 0 8px #38bdf8;
  animation: circuit-pulse 2s 1s ease-in-out infinite alternate;
}

@keyframes circuit-pulse {
  0% { opacity: 0.4; filter: brightness(0.8); }
  100% { opacity: 1; filter: brightness(1.6); }
}

.monolith-glyph-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}

.rune-glyph {
  font-size: 15px;
  color: #38bdf8;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #0284c7;
  animation: rune-glow 1.5s ease-in-out infinite alternate;
}

.monolith-glyph-col.right .rune-glyph {
  color: #facc15;
  text-shadow: 0 0 10px #facc15, 0 0 20px #d97706;
  animation-delay: 0.3s;
}

@keyframes rune-glow {
  0% { opacity: 0.4; filter: brightness(0.8); }
  100% { opacity: 1; filter: brightness(1.5); }
}

.monolith-singularity-eye {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #38bdf8 40%, #0369a1 80%, #000 100%);
  box-shadow: 0 0 20px #38bdf8, 0 0 40px #0284c7;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: eye-pulse 1.2s infinite alternate ease-in-out;
  z-index: 3;
}

@keyframes eye-pulse {
  0% { transform: translate(-50%, -50%) scale(0.85); box-shadow: 0 0 15px #38bdf8; }
  100% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 35px #67e8f9; }
}

.monolith-stone-dais {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dais-tier-1 {
  width: 100px;
  height: 12px;
  background: linear-gradient(180deg, #3f3f46 0%, #18181b 100%);
  border: 1px solid #71717a;
  border-bottom: none;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.dais-tier-2 {
  width: 140px;
  height: 16px;
  background: linear-gradient(180deg, #27272a 0%, #09090b 100%);
  border: 2px solid #52525b;
  border-radius: 3px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.35);
}

.monolith-shockwave-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.8);
  pointer-events: none;
  opacity: 0;
}

.monolith-shockwave-ring.ring-1 {
  animation: shockwave-expand 2.2s 0.8s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
}

.monolith-shockwave-ring.ring-2 {
  border-color: rgba(56, 189, 248, 0.8);
  animation: shockwave-expand 2.2s 1.4s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
}

@keyframes shockwave-expand {
  0% {
    transform: scale(0.3);
    opacity: 0.9;
  }
  100% {
    transform: scale(7.5);
    opacity: 0;
  }
}

.monolith-beams-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.monolith-beam-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: scale(0.6);
  animation: beam-node-emerge 1.4s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes beam-node-emerge {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.monolith-beam-node.node-1 { top: 12%; left: 16%; }
.monolith-beam-node.node-2 { top: 12%; right: 16%; }
.monolith-beam-node.node-3 { top: 50%; left: 8%; }
.monolith-beam-node.node-4 { top: 50%; right: 8%; }
.monolith-beam-node.node-5 { bottom: 14%; left: 18%; }
.monolith-beam-node.node-6 { bottom: 14%; right: 18%; }

.node-emblem {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #f59e0b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fef08a;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}

.node-badge {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid #facc15;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
  white-space: nowrap;
  animation: badge-bob 2s ease-in-out infinite alternate;
}

@keyframes badge-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.monolith-cinematic-banner {
  position: absolute;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  animation: banner-fade-in 1.2s 3.2s ease forwards;
}

@keyframes banner-fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.monolith-banner-headline {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fef08a;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.8), 0 0 30px rgba(234, 179, 8, 0.6);
  text-align: center;
  max-width: 900px;
  padding: 0 16px;
}

.monolith-banner-subline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  text-align: center;
}

.btn-enter-antiquity {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 2px solid #fde047;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  animation: pulse-antiquity-btn 2s ease-in-out infinite alternate;
  transition: transform 0.15s, filter 0.15s;
}

.btn-enter-antiquity:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.btn-enter-antiquity:active {
  transform: scale(0.96);
}

@keyframes pulse-antiquity-btn {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 30px rgba(253, 224, 71, 0.85); }
}

.monolith-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.4s ease;
}

.monolith-flash.flash-active {
  opacity: 0.95;
}

/* ==========================================================================
   EPOCH MASTERY (100% COMPLETION) & TEMPORAL ANCHORS
   ========================================================================== */
.epoch-mastery-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
  border: 1px solid #fde047;
  color: #fef08a;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 12px;
  margin-left: 6px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.epoch-mastery-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(120, 53, 15, 0.28) 100%);
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.mastery-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mastery-crown {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
}

.mastery-title {
  font-size: 13px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
}

.mastery-anchor {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
}

.grand-convergence-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  border: 1px solid #c084fc;
  color: #f5f3ff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 14px;
  margin-left: 10px;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
  animation: convergence-badge-glow 2.5s ease-in-out infinite alternate;
}

@keyframes convergence-badge-glow {
  0% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); }
  100% { box-shadow: 0 0 20px rgba(192, 132, 252, 0.9); }
}

/* ==========================================================================
   PROJECT CHRONOS: THE 6 TEMPORAL ANCHORS PANEL
   ========================================================================== */
.project-chronos-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid #a855f7;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.project-chronos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.project-chronos-title {
  font-size: 15px;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.8px;
}

.project-chronos-boost-badge {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #c084fc;
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.project-chronos-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.anchors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.anchor-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.anchor-card.forged {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(120, 53, 15, 0.25) 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.anchor-card.locked {
  opacity: 0.65;
  filter: grayscale(0.4);
}

.anchor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.anchor-epoch-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.anchor-card.forged .anchor-epoch-label {
  color: #fde047;
}

.anchor-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.anchor-status-pill.forged {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.anchor-status-pill.locked {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid #64748b;
}

.anchor-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.anchor-artifact {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
}

.anchor-lore {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.4;
}

.anchor-effect {
  font-size: 11px;
  font-weight: 700;
  color: #fde047;
  margin-top: 4px;
}

/* ==========================================================================
   GRAND CONVERGENCE MODAL & EPILOGUE
   ========================================================================== */
.convergence-modal-card {
  max-width: 760px;
  background: radial-gradient(circle at center, #1e1b4b 0%, #09090b 100%) !important;
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.6) !important;
}

.convergence-banner {
  text-align: center;
  padding: 16px 0 12px 0;
}

.convergence-sigil {
  font-size: 44px;
  margin-bottom: 8px;
  animation: sigil-float 3s ease-in-out infinite alternate;
}

@keyframes sigil-float {
  0% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)); }
  100% { transform: translateY(-6px); filter: drop-shadow(0 0 25px rgba(192, 132, 252, 0.9)); }
}

.convergence-headline {
  font-size: 20px;
  font-weight: 900;
  color: #c084fc;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.convergence-badge-awarded {
  display: inline-block;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1px solid #fde047;
  color: #fef08a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.convergence-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.conv-stat-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.conv-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #f5f3ff;
}

.conv-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.convergence-epilogue-box {
  background: rgba(15, 23, 42, 0.85);
  border-left: 4px solid #a855f7;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}

.epilogue-title {
  color: #fde047;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.epilogue-text {
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.epilogue-teaser {
  background: rgba(88, 28, 135, 0.35);
  border: 1px solid #c084fc;
  padding: 10px;
  border-radius: 6px;
  color: #fef08a;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.convergence-reward-box {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #f3e8ff;
}

/* ==========================================================================
   GRAND CONVERGENCE: SHOCKWAVE, ASTROLABE, & COSMIC GOLDEN BORDER
   ========================================================================== */

@keyframes grand-convergence {
  0% {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.4);
    filter: hue-rotate(0deg) contrast(110%);
  }
  25% {
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.8), 0 0 50px rgba(255, 215, 0, 0.7), inset 0 0 25px rgba(0, 229, 255, 0.6);
    filter: hue-rotate(90deg) contrast(140%) brightness(1.15);
  }
  50% {
    box-shadow: 0 0 55px rgba(255, 215, 0, 0.95), 0 0 85px rgba(0, 229, 255, 0.9), inset 0 0 45px rgba(255, 215, 0, 0.8);
    filter: hue-rotate(180deg) contrast(180%) brightness(1.3);
  }
  75% {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.85), 0 0 65px rgba(0, 229, 255, 0.75), inset 0 0 30px rgba(168, 85, 247, 0.7);
    filter: hue-rotate(270deg) contrast(140%) brightness(1.15);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 35px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(255, 215, 0, 0.5);
    filter: hue-rotate(360deg) contrast(115%) brightness(1.0);
  }
}

.grand-convergence-shockwave {
  animation: grand-convergence 4.0s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.golden-cosmic-border {
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.65), 0 0 45px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.3) !important;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.ouroboros-centerpiece {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto 16px auto;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 25px rgba(0, 229, 255, 0.5));
}

.ouroboros-svg {
  animation: ouroboros-pulse 4s ease-in-out infinite alternate;
}

@keyframes ouroboros-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.8)); }
}

/* Whitelist Grand Convergence in battery saver mode */
body.disable-glows .grand-convergence-shockwave,
body.no-glow .grand-convergence-shockwave,
body.battery-saver .grand-convergence-shockwave {
  animation: grand-convergence 4.0s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

body.disable-glows .golden-cosmic-border,
body.no-glow .golden-cosmic-border,
body.battery-saver .golden-cosmic-border {
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
}

body.disable-glows .ouroboros-centerpiece,
body.no-glow .ouroboros-centerpiece,
body.battery-saver .ouroboros-centerpiece {
  filter: none !important;
}

/* ==========================================================================
   ERA-SPECIFIC VISUAL ATMOSPHERE & THEME SKINS (DATA-EPOCH 1..6)
   Subtle 10-15% low-opacity glow, thin gradient borders, smooth transitions
   ========================================================================== */
header, .asset-card {
  transition: transform 0.15s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body[data-epoch="1"] {
  --era-accent: #d97706;
  --era-glow: rgba(217, 119, 6, 0.12);
  background: radial-gradient(circle at 10% 12%, rgba(217, 119, 6, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 88%, rgba(180, 83, 9, 0.05) 0%, transparent 50%), #0b0f19 fixed !important;
}
body[data-epoch="1"] header {
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12);
  border-bottom: 1px solid rgba(217, 119, 6, 0.28);
}
body[data-epoch="1"] .asset-card {
  border: 1px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.11), inset 0 0 12px rgba(180, 83, 9, 0.08);
  background: linear-gradient(135deg, rgba(28, 20, 16, 0.95) 0%, rgba(18, 14, 12, 0.95) 100%);
}
body[data-epoch="1"] .asset-card:hover {
  border-color: #d97706;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.15), inset 0 0 14px rgba(180, 83, 9, 0.12);
}

body[data-epoch="2"] {
  --era-accent: #fbbf24;
  --era-glow: rgba(251, 191, 36, 0.12);
  background: radial-gradient(circle at 10% 12%, rgba(251, 191, 36, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 88%, rgba(217, 119, 6, 0.05) 0%, transparent 50%), #0a0b16 fixed !important;
}
body[data-epoch="2"] header {
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.30);
}
body[data-epoch="2"] .asset-card {
  border: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(26, 24, 30, 0.95) 0%, rgba(18, 17, 24, 0.95) 100%);
}
body[data-epoch="2"] .asset-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body[data-epoch="3"] {
  --era-accent: #94a3b8;
  --era-glow: rgba(148, 163, 184, 0.12);
  background: radial-gradient(circle at 10% 12%, rgba(148, 163, 184, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 88%, rgba(100, 116, 139, 0.05) 0%, transparent 50%), #0d0e17 fixed !important;
}
body[data-epoch="3"] header {
  box-shadow: 0 4px 20px rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
body[data-epoch="3"] .asset-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 4px 16px rgba(148, 163, 184, 0.11), inset 0 1px 0 rgba(254, 240, 138, 0.12);
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.95) 0%, rgba(15, 17, 22, 0.95) 100%);
}
body[data-epoch="3"] .asset-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(148, 163, 184, 0.15), inset 0 1px 0 rgba(254, 240, 138, 0.18);
}

body[data-epoch="4"] {
  --era-accent: #f97316;
  --era-glow: rgba(249, 115, 22, 0.12);
  background: radial-gradient(circle at 10% 12%, rgba(249, 115, 22, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 88%, rgba(194, 65, 12, 0.05) 0%, transparent 50%), #0c0e18 fixed !important;
}
body[data-epoch="4"] header {
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.12);
  border-bottom: 1px solid rgba(249, 115, 22, 0.30);
}
body[data-epoch="4"] .asset-card {
  border: 1px solid rgba(249, 115, 22, 0.28);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.11), inset 0 0 10px rgba(194, 65, 12, 0.10);
  background: linear-gradient(135deg, rgba(28, 18, 14, 0.95) 0%, rgba(18, 13, 11, 0.95) 100%);
}
body[data-epoch="4"] .asset-card:hover {
  border-color: #f97316;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.15), inset 0 0 14px rgba(249, 115, 22, 0.14);
}

body[data-epoch="5"] {
  --era-accent: #38bdf8;
  --era-glow: rgba(56, 189, 248, 0.10);
  background: radial-gradient(circle at 10% 12%, rgba(56, 189, 248, 0.07) 0%, transparent 45%), radial-gradient(circle at 90% 88%, rgba(14, 165, 233, 0.05) 0%, transparent 50%), #080f19 fixed !important;
}
body[data-epoch="5"] header {
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.26);
}
body[data-epoch="5"] .asset-card {
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.10), inset 0 1px 0 rgba(226, 232, 240, 0.14);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.95) 100%);
}
body[data-epoch="5"] .asset-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(226, 232, 240, 0.22);
}

body[data-epoch="6"] {
  --era-accent: #06b6d4;
  --era-glow: rgba(6, 182, 212, 0.15);
  background: radial-gradient(circle at 10% 12%, rgba(6, 182, 212, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 88%, rgba(59, 130, 246, 0.06) 0%, transparent 50%), #070914 fixed !important;
}
body[data-epoch="6"] header {
  box-shadow: 0 4px 25px rgba(6, 182, 212, 0.15);
  border-bottom: 1px solid rgba(6, 182, 212, 0.35);
}
body[data-epoch="6"] .asset-card {
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.14), 0 0 10px rgba(59, 130, 246, 0.10);
  background: linear-gradient(135deg, rgba(10, 18, 36, 0.95) 0%, rgba(6, 12, 24, 0.95) 100%);
}
body[data-epoch="6"] .asset-card:hover {
  border-color: #06b6d4;
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.22), 0 0 14px rgba(59, 130, 246, 0.15);
}

.asset-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.custom-medallion-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.asset-icon-medallion-frame {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.golden-age-medallion-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.hud-relic-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* Header Button 3D Metallic Medallion Icons */
.header-btn-icon,
.hud-btn-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s ease, filter 0.15s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.btn-action:hover .header-btn-icon,
.btn-action:hover .hud-btn-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.75)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.header-btn-icon.icon-great-minds,
.hud-btn-icon.icon-great-minds,
.icon-great-minds {
  background-image: url('/assets/icons/great-minds-icon.png');
}

.header-btn-icon.icon-overseers,
.hud-btn-icon.icon-overseers,
.icon-overseers {
  background-image: url('/assets/icons/overseers-icon.png');
}

.header-btn-icon.icon-shop,
.hud-btn-icon.icon-shop,
.icon-shop {
  background-image: url('/assets/icons/shop-icon.png');
}

.header-btn-icon.icon-mint,
.hud-btn-icon.icon-mint,
.header-btn-icon.icon-bullion,
.hud-btn-icon.icon-bullion,
.icon-mint,
.icon-bullion {
  background-image: url('/assets/icons/Bullion.png');
}

.header-btn-icon.icon-caravans,
.hud-btn-icon.icon-caravans,
.icon-caravans {
  background-image: url('/assets/icons/caravans-icon.png');
}

.header-btn-icon.icon-chronicles,
.hud-btn-icon.icon-chronicles,
.icon-chronicles {
  background-image: url('/assets/icons/chronicles-icon.png');
}

.header-btn-icon.icon-settings,
.hud-btn-icon.icon-settings,
.icon-settings {
  background-image: url('/assets/icons/settings-icon.png');
}

/* Caravans Modal Dual-Tab Navigation */
.caravans-tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.caravans-tab-btn {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.caravans-tab-btn:hover {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #f8fafc;
  border-color: rgba(234, 179, 8, 0.4);
}

.caravans-tab-btn.active {
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.modal-relic-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* ==========================================================================
   DISCOVERY SPOTLIGHT MODAL & PULSE ANIMATIONS
   ========================================================================== */
.modal-content.modal-content-discovery {
  max-width: 520px;
  width: 90%;
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.4), inset 0 0 30px rgba(245, 158, 11, 0.15);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: discovery-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes discovery-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.discovery-spotlight-beam {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.discovery-badge-wrap {
  margin-bottom: 12px;
}

.discovery-spotlight-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #f59e0b;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.discovery-emblem-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 16px 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.discovery-title {
  font-family: var(--font-serif, serif);
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.discovery-desc {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.discovery-target-tip {
  font-size: 12px;
  font-style: italic;
  color: #fde047;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
}

.btn-discovery-got-it {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: 1px solid #fde047;
  border-bottom: 4px solid #78350f;
  border-radius: 10px;
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
  transition: all 0.12s ease;
}

.btn-discovery-got-it:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  border-bottom-width: 5px;
}

.btn-discovery-got-it:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

@keyframes tutorial-target-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.8), 0 0 15px rgba(234, 179, 8, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(234, 179, 8, 0), 0 0 30px rgba(234, 179, 8, 0.9);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0), 0 0 15px rgba(234, 179, 8, 0.5);
    transform: scale(1);
  }
}

.tutorial-target-pulse {
  animation: tutorial-target-glow 0.8s ease-in-out infinite !important;
  z-index: 100 !important;
  position: relative !important;
  border-color: #fbbf24 !important;
}

/* HUD currency SVG icons */
.currency-hud-svg,
.currency-btn-svg {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  margin-right: 4px;
}



