/* Arcane Background Circle */
.arcane-circle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw;
  height: 120vw;
  max-width: 1400px;
  max-height: 1400px;
  border: 1px solid rgba(167, 139, 250, 0.06);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: spin 120s linear infinite;
}

.arcane-circle::before, .arcane-circle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.arcane-circle::before {
  width: 80%; height: 80%;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  animation: spin-reverse 80s linear infinite;
}

.arcane-circle::after {
  width: 60%; height: 60%;
  border: 1px solid rgba(167, 139, 250, 0.03);
  border-top-color: rgba(167, 139, 250, 0.14);
  border-bottom-color: rgba(167, 139, 250, 0.14);
}

.rune-marker {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--arcane-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--arcane-blue);
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
}

/* Ledger Rows / Interactive Links */
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ledger-row::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--arcane-blue), var(--mithral), transparent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--arcane-glow);
}

.ledger-row:hover::before {
  width: 100%;
}

.ledger-row:hover {
  padding-left: 1.5rem;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.05), transparent);
}

/* Title & Header Text */
.title-rune {
  font-family: var(--font-rune);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--mithral-glow);
}

.title-glow {
  text-shadow: 0 0 20px var(--mithral-glow);
}

.eyebrow-rune {
  color: var(--mithral-soft);
  font-family: var(--font-rune);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.glass-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 24%),
    var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 40px rgba(0, 0, 0, 0.18);
}

.arcane-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(167, 139, 250, 0.8);
  border-radius: 4px;
  background: var(--surface-card-hover);
  color: var(--mithral);
  font-family: var(--font-rune);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.arcane-button:hover {
  background: rgba(45, 40, 58, 0.98);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.12);
}

/* Stat Cards */
.stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 24%),
    var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--arcane-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(167, 139, 250, 0.48);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.08);
  transform: translateY(-2px);
}

.stat-card:hover::after {
  opacity: 1;
}

/* Ornamental Divider */
.portal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--mithral-dark);
  font-family: var(--font-rune);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portal-divider::before,
.portal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--mithral-dark), transparent);
}
